esp-idf/components
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
..
app_trace timer_group: use the LL 2019-08-09 13:46:31 +08:00
app_update app_update: Fix UTs for FACTORY_RESET and APP_TEST 2019-08-23 10:21:06 +00:00
asio components: use new component registration api 2019-06-21 19:53:29 +08:00
bootloader Merge branch 'bugfix/cmake_bootloader_python' into 'master' 2019-09-03 12:55:58 +08:00
bootloader_support secure boot: Ensure mbedTLS enables ECDSA if signatures are checked in app 2019-08-30 14:56:11 +10:00
bt Merge branch 'bugfix/btdm_crash_in_sket_ist' into 'master' 2019-09-05 12:01:35 +08:00
cbor cbor: add tinycbor library and example 2019-08-22 17:44:29 +08:00
coap coap: kconfig cleanup, have component specific configuration for common options 2019-08-06 10:37:40 +05:30
console tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
cxx esp_attr: add flag_attr to support enums used as flags 2019-08-09 13:46:32 +08:00
driver Merge branch 'bugfix/unicore_config_prevent_ipc_code' into 'master' 2019-08-30 16:26:47 +08:00
efuse efuse: update the scheme of getting chip revision 2019-08-13 10:59:02 +08:00
esp32 Merge branch 'bugfix/make_build_issue_if_build_dir_symlink' into 'master' 2019-08-30 16:27:21 +08:00
esp_adc_cal tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
esp_common Merge branch 'bugfix/err_code_collision' into 'master' 2019-09-03 08:30:40 +08:00
esp_eth ethernet: can build without enable esp32 emac 2019-07-22 21:07:02 +08:00
esp_event esp_wifi: wifi support new event mechanism 2019-08-20 09:39:51 +00:00
esp_gdbstub esp32_gdbstub: fix build error with esp32-2019r1 toolchain 2019-08-07 11:56:13 +05:30
esp_http_client Merge branch 'bugfix/strict_prototypes' into 'master' 2019-08-05 09:38:39 +08:00
esp_http_server esp_http_server : Bugfix in parsing of empty header values 2019-09-06 11:02:36 +08:00
esp_https_ota esp_https_ota: Added error checking functionalities. 2019-08-15 21:10:00 +08:00
esp_https_server esp-tls: Naming variables refering to certificates and keys in a neutral way to suggest that both PEM and DER format could be used, added comments descibing important details about using these formats 2019-08-02 09:25:16 +02:00
esp_local_ctrl tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
esp_ringbuf timer_group: use the LL 2019-08-09 13:46:31 +08:00
esp_rom tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
esp_websocket_client esp_wifi: wifi support new event mechanism 2019-08-20 09:39:51 +00:00
esp_wifi fix some coex bugs 2019-08-30 22:06:29 +08:00
esp-tls Merge branch 'feature/tls_psk_authentication' into 'master' 2019-08-12 12:45:34 +08:00
espcoredump tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
esptool_py Merge branch 'bugfix/fix_encrypted_project_flash_arg_file_gen' into 'master' 2019-08-13 13:45:57 +08:00
expat components: use new component registration api 2019-06-21 19:53:29 +08:00
fatfs Fix a build issue with replacing init_spi_flash() in the host tests 2019-08-01 16:28:56 +07:00
freemodbus timer_group: use the LL 2019-08-09 13:46:31 +08:00
freertos Merge branch 'refactor/timerg_in_test' into 'master' 2019-08-14 15:32:16 +08:00
heap tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
idf_test Merge branch 'test/use_correct_config_for_nvs_compatible_case' into 'master' 2019-09-02 12:40:38 +08:00
jsmn components: use new component registration api 2019-06-21 19:53:29 +08:00
json Update cJSON to v1.7.12 2019-08-14 10:03:27 +10:00
libsodium Merge branch 'bugfix/libsodium_test_timeouts' into 'master' 2019-08-08 15:02:51 +08:00
log tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
lwip Merge branch 'bugfix/err_code_collision' into 'master' 2019-09-03 08:30:40 +08:00
mbedtls mbedtls: Make ECDHE-PSK config item depend on ECDHE 2019-08-30 15:01:53 +10:00
mdns esp_wifi: wifi support new event mechanism 2019-08-20 09:39:51 +00:00
mqtt esp_wifi: wifi support new event mechanism 2019-08-20 09:39:51 +00:00
newlib newlib: Fix UT - test time adjustment happens linearly 2019-08-08 12:38:33 +08:00
nghttp cmake: some formatting fixes 2019-06-21 19:53:29 +08:00
nvs_flash tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
openssl tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
partition_table global: update note in the partition tables 2019-07-27 10:28:16 +02:00
protobuf-c components: use new component registration api 2019-06-21 19:53:29 +08:00
protocomm NimBLE: Fix bug in protocomm_nimble chararcteristic access callback 2019-08-15 10:50:30 +08:00
pthread tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
sdmmc tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
soc Fix error code collision and CI check 2019-08-29 08:14:08 +00:00
spi_flash spi_flash: remove duplicate definition of spi_flash_unlock 2019-08-23 12:37:55 +08:00
spiffs Fix a build issue with replacing init_spi_flash() in the host tests 2019-08-01 16:28:56 +07:00
tcp_transport tcp_transport: replace transport_strcasestr with strcasestr 2019-08-15 17:51:54 +02:00
tcpip_adapter esp_wifi: wifi support new event mechanism 2019-08-20 09:39:51 +00:00
ulp ulp: Add aditional uint32_t object to ulp_insn_t 2019-08-15 17:34:26 +02:00
unity Fix remaining -Wstrict-prototypes warnings 2019-08-01 16:28:56 +07:00
vfs docs: Correct and extend the documentation about VFS select() 2019-08-05 11:17:43 +02:00
wear_levelling Fix a build issue with replacing init_spi_flash() in the host tests 2019-08-01 16:28:56 +07:00
wifi_provisioning esp_wifi: wifi support new event mechanism 2019-08-20 09:39:51 +00:00
wpa_supplicant Merge branch 'bugfix/wps_workaround_for_Telstra_AP' into 'master' 2019-08-23 17:32:46 +08:00
xtensa make code conform to Wstrict-prototypes 2019-08-01 16:28:56 +07:00