esp-idf/components/esp_http_server/src
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
..
port/esp32 esp_http_server/lru_counter_for_timestamp:Added LRU counter for timer 2019-02-25 09:16:28 +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 13:06:33 +05:30
httpd_main.c esp_http_server : Only accept new connections if server has capacity to handle more 2019-04-08 11:34:20 +05:30
httpd_parse.c esp_http_server : Bugfix in parsing of empty header values 2019-09-09 08:57:29 +00:00
httpd_sess.c httpd_sess_close: Check for session validity before closing 2019-08-09 14:58:28 +05:30
httpd_txrx.c HTTP Server : Fix for tolerating LF terminated headers 2019-05-02 05:56:49 +00:00
httpd_uri.c esp_http_server : APIs renamed and context get/set implementations fixed 2019-02-03 21:50:35 +05:30