OVMS3-idf/components
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
..
app_trace cmake: Add support for test build 2018-10-20 12:07:24 +08:00
app_update bugfix/ota_magic_byte_issue: Fix indent and replace constant by macro 2018-12-20 12:29:25 +05:30
asio cmake: make main a component again 2018-09-11 09:44:12 +08:00
aws_iot cmake: make main a component again 2018-09-11 09:44:12 +08:00
bootloader flash encryption: Add config option to disable any plaintext reflashes 2019-09-05 18:54:29 +10:00
bootloader_support flash encryption: Add config option to disable any plaintext reflashes 2019-09-05 18:54:29 +10:00
bt components/bt: set the minimum encryption key size to be 7 octects for BR/EDR link for preventing KNOB attack. 2019-08-23 08:30:23 +08:00
coap cmake: silence some warnings in coap, bt, expat, libsodium, lwip and examples/bluetooth 2018-09-20 18:53:15 +08:00
console console/linenoise: support buffered stdout 2019-03-15 11:29:56 +08:00
cxx cmake: Add support for test build 2018-10-20 12:07:24 +08:00
driver Bugfix(i2s): fixed i2s left/right channels swapped issue for release/v3.2. 2019-08-26 14:02:27 +08:00
esp-tls Merge branch 'bugfix/esp-tls-doc' into 'master' 2018-11-05 12:30:22 +08:00
esp32 Merge branch 'bugfix/fix_the_bug_for_WPA_WPA2_PSK_connection_fail_v3.2' into 'release/v3.2' 2019-09-06 11:44:09 +08:00
esp_adc_cal cmake: make main a component again 2018-09-11 09:44:12 +08:00
esp_event esp_event: detect leaks in unit test 2019-02-01 10:08:50 +08:00
esp_http_client esp_http_client: Fix header sent event bug 2019-07-21 07:25:23 +00:00
esp_http_server esp_http_server : Bugfix in parsing of empty header values 2019-09-09 08:57:29 +00:00
esp_https_ota esp_http_client: add support for using certs from global ca store 2019-04-24 14:06:33 +05:30
esp_ringbuf cmake: Add support for test build 2018-10-20 12:07:24 +08:00
espcoredump cmake: Add support for test build 2018-10-20 12:07:24 +08:00
esptool_py Update esptool.py to v2.6 2019-01-23 17:02:02 +08:00
ethernet add promiscuous mode control in emac driver 2019-05-10 12:56:35 +08:00
expat cmake: Add support for test build 2018-10-20 12:07:24 +08:00
fatfs fatfs: Do not log from critical sections 2018-11-26 09:21:44 +01:00
freemodbus freemodbus: change critical sections to semaphore mutex 2019-03-07 16:01:43 +01:00
freertos freertos/test: Add unit tests for xTaskIncrementTick 2019-06-07 09:54:03 +00:00
heap heap: Add integer overflow checks on MALLOC_CAP_32BIT & MALLOC_CAP_EXEC 2019-03-20 18:30:17 +11:00
idf_test test: fix integration test jobs not executed: 2019-08-26 14:01:34 +08:00
jsmn cmake: make main a component again 2018-09-11 09:44:12 +08:00
json cmake: make main a component again 2018-09-11 09:44:12 +08:00
libsodium test: Set timeout of libsodium ed25519_convert test to 60s 2019-07-30 04:44:30 +00:00
log cmake: make main a component again 2018-09-11 09:44:12 +08:00
lwip lwip: Try to allocate some LWIP memories in SPIRAM first. If failed, try to allocate in internal RAM then. 2019-08-07 21:11:06 +08:00
mbedtls mbedtls: Add UTs for modexp 2019-06-26 14:20:30 +08:00
mdns Merge branch 'bugfix/mdns_add_remove_multiple_srv_3.2' into 'release/v3.2' 2019-03-14 07:56:40 +08:00
micro-ecc cmake: make main a component again 2018-09-11 09:44:12 +08:00
mqtt tcp_transport: modified ws_read to read payload directly to the read buffer and separately from header bytes 2019-05-29 07:45:13 +02:00
newlib newlib: Move _gettimeofday_r call in clock_gettime 2019-08-07 20:37:25 +08:00
nghttp cmake: make main a component again 2018-09-11 09:44:12 +08:00
nvs_flash Merge branch 'fix/update_curr_page_state_3.2' into 'release/v3.2' 2019-07-08 14:05:40 +08:00
openssl cmake: make main a component again 2018-09-11 09:44:12 +08:00
partition_table cmake: Add support for test build 2018-10-20 12:07:24 +08:00
protobuf-c protobuf-c : Added Google's protocol buffer C library as sub-module 2018-10-02 19:07:28 +05:30
protocomm Merge branch 'bugfix/prov_examples_strlcpy_backport_v3.2' into 'release/v3.2' 2019-07-05 20:56:35 +08:00
pthread Merge branch 'feature/cmake-unit-test' into 'master' 2018-10-22 16:29:15 +08:00
sdmmc cmake: Add support for test build 2018-10-20 12:07:24 +08:00
smartconfig_ack cmake: make main a component again 2018-09-11 09:44:12 +08:00
soc soc: Add some headers into gpio_periph.h 2019-05-29 13:46:37 +08:00
spi_flash bugfix(flash): improve flash dio read timing 2019-07-02 14:57:13 +08:00
spiffs spiffs: increase timeout in readdir test 2018-11-21 03:42:15 +00:00
tcp_transport Merge branch 'feature/mqtt_improve_recv_3.2' into 'release/v3.2' 2019-08-07 16:05:07 +08:00
tcpip_adapter mdns: fixed crashes on network changes 2018-10-24 12:03:41 +02:00
ulp cmake: Fix for Python files executed directly, not via PYTHON variable 2019-03-25 11:41:00 +08:00
vfs VFS: Allocate socket select semaphore outside ISR 2019-05-15 10:50:49 +02:00
wear_levelling Version update from V1 to V2 now done in correct way. 2018-10-26 09:21:30 +03:00
wifi_provisioning Wi-Fi Provisioning : Bugfix in copying SSID and Passphrase 2019-06-27 12:38:07 +05:30
wpa_supplicant Merge branch 'bugfix/supplicant_security_fixes_v3.2' into 'release/v3.2' 2019-07-25 12:18:19 +08:00
xtensa-debug-module cmake: make main a component again 2018-09-11 09:44:12 +08:00