OVMS3-idf/components/esp_http_server
Chinmay 38b1c93764 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-09 08:21:13 +00:00
..
include HTTP Server : Close new session immediately if open_fn fails 2019-06-28 10:11:26 +00:00
src esp_http_server : Bugfix in parsing of empty header values 2019-09-09 08:21:13 +00:00
test esp_http_server : Test added to check limit on max_open_sockets config option 2019-04-08 11:22:12 +05:30
CMakeLists.txt HTTP Server : Added esp_ prefix to http_server component files 2018-10-24 17:32:20 +05:30
component.mk HTTP Server : Added esp_ prefix to http_server component files 2018-10-24 17:32:20 +05:30
Kconfig esp_http_server : Logging of purged data to monitor made configurable 2019-06-03 05:51:14 +00:00