OVMS3-idf/components/esp_http_server/src
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
..
port/esp32 tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
util HTTP Server : Added esp_ prefix to http_server component files 2018-10-24 17:32:20 +05:30
esp_httpd_priv.h esp_http_server: Provide apps an option to let http_server ignore sess_ctx changes 2019-03-05 00:21:03 +05:30
httpd_main.c esp_http_server : Allow binding to same address and port upon restarting server without delay 2019-05-02 05:29:38 +00:00
httpd_parse.c esp_http_server : Bugfix in parsing of empty header values 2019-09-06 11:02:36 +08:00
httpd_sess.c httpd_sess_close: Check for session validity before closing 2019-08-06 19:31:57 +05:30
httpd_txrx.c lwip_2.1.2 for idf_4.0 2019-07-07 01:51:45 +00:00
httpd_uri.c http_server : Added feature for invoking user configurable handlers during server errors 2019-02-25 09:13:39 +00:00