|
|
@ -52,9 +52,16 @@ typedef unsigned __int64 uint64_t;
|
|
|
|
# define HTTP_PARSER_STRICT 1
|
|
|
|
# define HTTP_PARSER_STRICT 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* Maximium header size allowed */
|
|
|
|
/* Maximium header size allowed. If the macro is not defined
|
|
|
|
#define HTTP_MAX_HEADER_SIZE (80*1024)
|
|
|
|
* before including this header then the default is used. To
|
|
|
|
|
|
|
|
* change the maximum header size, define the macro in the build
|
|
|
|
|
|
|
|
* environment (e.g. -DHTTP_MAX_HEADER_SIZE=<value>). To remove
|
|
|
|
|
|
|
|
* the effective limit on the size of the header, define the macro
|
|
|
|
|
|
|
|
* to a very large number (e.g. -DHTTP_MAX_HEADER_SIZE=0x7fffffff)
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HTTP_MAX_HEADER_SIZE
|
|
|
|
|
|
|
|
# define HTTP_MAX_HEADER_SIZE (80*1024)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct http_parser http_parser;
|
|
|
|
typedef struct http_parser http_parser;
|
|
|
|
typedef struct http_parser_settings http_parser_settings;
|
|
|
|
typedef struct http_parser_settings http_parser_settings;
|
|
|
|