OVMS3-idf/examples/protocols/http_server
Chinmay fa952e5d30 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

Backports !5663
2019-09-09 08:57:29 +00:00
..
advanced_tests esp_http_server : Bugfix in parsing of empty header values 2019-09-09 08:57:29 +00:00
persistent_sockets HTTP Server Examples : Include header esp_http_server.h 2018-10-24 17:32:43 +05:30
simple HTTP Server Examples : Include header esp_http_server.h 2018-10-24 17:32:43 +05:30