esp-idf/components/esp_http_client
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
..
include esp_http_client: add support for using certs from global ca store 2019-02-27 14:19:06 +05:30
lib separate rom from esp32 component to esp_rom 2019-03-21 18:51:45 +08:00
test
CMakeLists.txt
Kconfig Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
component.mk
esp_http_client.c Fix url redirection issue. 2019-04-10 05:40:16 +00:00