Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Commit 3a5a436

Browse files
committed
make it configurable through gyp
1 parent 3beda5f commit 3a5a436

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

http_parser.gyp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
],
4848
},
4949

50+
'variables': {
51+
'http_max_url_size%': '8192'
52+
},
53+
5054
'targets': [
5155
{
5256
'target_name': 'http_parser',
@@ -56,7 +60,10 @@
5660
'defines': [ 'HTTP_PARSER_STRICT=0' ],
5761
'include_dirs': [ '.' ],
5862
},
59-
'defines': [ 'HTTP_PARSER_STRICT=0' ],
63+
'defines': [
64+
'HTTP_MAX_URL_SIZE=<(http_max_url_size)',
65+
'HTTP_PARSER_STRICT=0'
66+
],
6067
'sources': [ './http_parser.c', ],
6168
'conditions': [
6269
['OS=="win"', {
@@ -79,7 +86,10 @@
7986
'defines': [ 'HTTP_PARSER_STRICT=1' ],
8087
'include_dirs': [ '.' ],
8188
},
82-
'defines': [ 'HTTP_PARSER_STRICT=1' ],
89+
'defines': [
90+
'HTTP_MAX_URL_SIZE=<(http_max_url_size)',
91+
'HTTP_PARSER_STRICT=1'
92+
],
8393
'sources': [ './http_parser.c', ],
8494
'conditions': [
8595
['OS=="win"', {

0 commit comments

Comments
 (0)