http: Fix parse long headers names
Bug: During parsing http headers, long headers names are truncated to zero length, but values are not ignored. Fix this with adding parameter max_header_name_length to http request. If header name is bigger than this value, header name is truncated to this length. Default value of max_header_name_length is 32. Do some refactoring with renaming long names in http_parser. Closes #3451
Showing
- src/http_parser.c 26 additions, 25 deletionssrc/http_parser.c
- src/http_parser.h 7 additions, 6 deletionssrc/http_parser.h
- src/lua/httpc.c 29 additions, 13 deletionssrc/lua/httpc.c
- test/app-tap/http_client.test.lua 7 additions, 1 deletiontest/app-tap/http_client.test.lua
- test/app-tap/httpd.py 1 addition, 0 deletionstest/app-tap/httpd.py
Please register or sign in to comment