esp-idf/components
Vikram Dattu a875505546 Fix url redirection issue.
Operation:
In `esp_http_client_set_url`, we check for if old_host is same as new_host.
Delete and open new connection if host is different.

Issue:
We just pointed `client->connection_info.host` to `old_host` and reassigned it.
This made old_host and new_host always point to same location and hence, using old_host with new request.

Fix:
Made a separate copy for old_host using strdup.

Closes https://github.com/espressif/esp-idf/issues/2631

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2019-04-10 05:40:16 +00:00
..
app_trace ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
app_update Merge branch 'feature/micro-ecc-only-in-bootloader' into 'master' 2019-04-04 14:26:48 +08:00
asio
aws_iot
bootloader make bootloader depend on IDF_TARGET 2019-04-08 11:08:06 +08:00
bootloader_support Merge branch 'bugfix/bootloader_flash_crypt_cnt_ff' into 'master' 2019-04-09 08:10:06 +08:00
bt Merge branch 'bugfix/btdm_fix_warning_when_disable_logs' into 'master' 2019-04-04 18:45:25 +08:00
coap
console
cxx
driver
efuse
esp-tls
esp32 ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
esp_adc_cal
esp_common
esp_event
esp_http_client Fix url redirection issue. 2019-04-10 05:40:16 +00:00
esp_http_server esp_http_server : Test added to check limit on max_open_sockets config option 2019-04-03 13:34:12 +00:00
esp_https_ota
esp_https_server
esp_ringbuf ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
esp_rom
esp_wifi esp_wifi: increase WiFi block scan timeout value 2019-04-09 09:24:34 +08:00
espcoredump ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
esptool_py
ethernet
expat
fatfs
freemodbus
freertos ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
heap ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
idf_test
jsmn
json
libsodium
log
lwip ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
mbedtls
mdns
mqtt
newlib ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
nghttp
nvs_flash
openssl
partition_table
protobuf-c
protocomm Unified Provisioning: Miscellaneous fixes in BLE 2019-04-05 14:27:24 +05:30
pthread
sdmmc
smartconfig_ack
soc Merge branch 'bugfix/bootloader_flash_crypt_cnt_ff' into 'master' 2019-04-09 08:10:06 +08:00
spi_flash ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
spiffs
tcp_transport transport_ws: Stop connecting when the parent's connect call has failed 2019-04-04 16:14:42 +02:00
tcpip_adapter
ulp
unity
vfs ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00
wear_levelling
wifi_provisioning
wpa_supplicant
xtensa ldgen: update component linker fragment files 2019-04-04 15:57:34 +08:00