diff --git a/http_parser.gyp b/http_parser.gyp index ef34ecae..67ff0046 100644 --- a/http_parser.gyp +++ b/http_parser.gyp @@ -47,6 +47,10 @@ ], }, + 'variables': { + 'http_max_url_size%': '8192' + }, + 'targets': [ { 'target_name': 'http_parser', @@ -56,7 +60,10 @@ 'defines': [ 'HTTP_PARSER_STRICT=0' ], 'include_dirs': [ '.' ], }, - 'defines': [ 'HTTP_PARSER_STRICT=0' ], + 'defines': [ + 'HTTP_MAX_URL_SIZE=<(http_max_url_size)', + 'HTTP_PARSER_STRICT=0' + ], 'sources': [ './http_parser.c', ], 'conditions': [ ['OS=="win"', { @@ -79,7 +86,10 @@ 'defines': [ 'HTTP_PARSER_STRICT=1' ], 'include_dirs': [ '.' ], }, - 'defines': [ 'HTTP_PARSER_STRICT=1' ], + 'defines': [ + 'HTTP_MAX_URL_SIZE=<(http_max_url_size)', + 'HTTP_PARSER_STRICT=1' + ], 'sources': [ './http_parser.c', ], 'conditions': [ ['OS=="win"', {