Open apenney opened 8 years ago
how did you fix this issue?
If anyone needs the workaround, you can modify src/http_parser.h
line 52
before compiling, change # define HTTP_PARSER_STRICT 1
to # define HTTP_PARSER_STRICT 0
. The comment sounds like we can change it using parameter, but i don't know how.
https://github.com/giltene/wrk2/blob/44a94c17d8e6a0bac8559b53da76848e430cb7a7/src/http_parser.h#L48-L53
Or just add || (c) == '_'
in src/http_parser.c
line 428
if you want to retain other strict rules.
https://github.com/giltene/wrk2/blob/44a94c17d8e6a0bac8559b53da76848e430cb7a7/src/http_parser.c#L425-L435
Result:
Hi,
I noticed today that URLs with underscores are seen as invalid:
The httpparser.c code seems to allow 's so I'm not really sure where to start with fixing this. This was tested against master.