esp-idf/components/esp_http_server/src
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
..
port/esp32 esp_http_server/lru_counter_for_timestamp:Added LRU counter for timer 2019-02-25 10:08:15 +00: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-06 10:52:49 +05:30
httpd_parse.c esp_http_server : Bugfix in parsing of empty header values 2019-09-09 08:21:13 +00:00
httpd_sess.c httpd_sess_close: Check for session validity before closing 2019-08-28 09:03:55 +00:00
httpd_txrx.c HTTP Server : Fix for tolerating LF terminated headers 2019-04-01 15:38:59 +05:30
httpd_uri.c http_server : Added feature for invoking user configurable handlers during server errors 2019-02-25 09:13:39 +00:00