esp-idf/examples/protocols/http_server/advanced_tests
Chinmay Chhajed a6cc964a26 esp_http_server : Bugfix in parsing of empty header values
This MR is intended to fix incorrect parsing of HTTP requests when empty header values are present.

The issue is was due to asymmetric behavior of `http_parser` library, which in case of:

    non-empty header values : invokes callbacks with the pointer to the start of a value
    empty header values : invokes callbacks with pointer to the start of next header or section

Since HTTP server relies on this pointer (along with length of the value) to locate the end of a value, and replace the line terminators (CRLFs) with null characters, the second case needed to be handled correctly.

Closes IDFGH-1539

Closes https://github.com/espressif/esp-idf/issues/3803
2019-09-06 11:02:36 +08:00
..
main esp_http_server : Bugfix in parsing of empty header values 2019-09-06 11:02:36 +08:00
scripts esp_http_server : Bugfix in parsing of empty header values 2019-09-06 11:02:36 +08:00
CMakeLists.txt examples/protocols/http(s)_server: use common network component 2019-04-15 03:32:05 +00:00
http_server_advanced_test.py esp_http_server : Bugfix in parsing of empty header values 2019-09-06 11:02:36 +08:00
Makefile examples/protocols/http(s)_server: use common network component 2019-04-15 03:32:05 +00:00