OVMS3-idf/examples/protocols
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
..
asio Fix Python 3 compatibility issues 2018-10-24 11:20:54 +02:00
aws_iot examples: aws_iot: fix cmake build issue which used to pick dummy certificates 2019-02-12 11:03:14 +05:30
coap_client doc: add CoAP README.md 2019-02-15 16:03:54 +08:00
coap_server doc: add CoAP README.md 2019-02-15 16:03:54 +08:00
esp_http_client examples/protocols/esp_http_client: Add example for asynchronous HTTP request 2018-09-24 05:42:28 +00:00
http2_request cmake: make main a component again 2018-09-11 09:44:12 +08:00
http_request cmake: make main a component again 2018-09-11 09:44:12 +08:00
http_server esp_http_server : Bugfix in parsing of empty header values 2019-09-09 08:57:29 +00:00
https_mbedtls cmake: make main a component again 2018-09-11 09:44:12 +08:00
https_request asio: examples renamed to have consistent binary names when build in make and CMake 2018-10-17 15:00:26 +02:00
mdns mdns example: fix print result for IPv6 addresses 2019-02-21 06:43:23 +00:00
modbus_slave examples: freemodbus port serial slave move uart mode settings into example 2018-12-21 09:54:26 +01:00
mqtt mqtt: support for BEFORE_CONNECT event in idf 2019-03-21 14:35:49 +01:00
openssl_client cmake: make main a component again 2018-09-11 09:44:12 +08:00
openssl_server cmake: make main a component again 2018-09-11 09:44:12 +08:00
pppos_client cmake: make main a component again 2018-09-11 09:44:12 +08:00
sntp cmake: make main a component again 2018-09-11 09:44:12 +08:00
sockets fix the bug in tcp_client 2019-02-28 14:25:54 +08:00
README.md Replace all DOS line endings with Unix 2018-07-12 19:10:37 +08:00

Protocols Examples

Implementation of internet communication protocols and services.

See the README.md file in the upper level examples directory for more information about examples.