let the header parser fail more accurately
[m6w6/ext-http] / php_http_misc.h
index 8e901da3c135e546ebb8f7b6bb239be6756c8a92..cf00f24ef5a71e3d3b21c1a8e0283f2c439e8b97 100644 (file)
@@ -27,6 +27,9 @@
 /* send buffer size */
 #define PHP_HTTP_SENDBUF_SIZE 40960
 
+/* allowed characters of header field names */
+#define PHP_HTTP_HEADER_NAME_CHARS "!#$%&'*+-.^_`|~1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+
 /* SLEEP */
 
 #define PHP_HTTP_DIFFSEC (0.001)