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 esp_http_client: Fix config member path's incorrect setting issue 2019-01-21 19:08:24 +08:00
CMakeLists.txt MQTT: Integrate esp-mqtt library into idf 2018-09-12 08:00:59 +02:00
component.mk Add esp_http_client 2018-05-21 09:35:07 +07:00
esp_http_client.c Fix url redirection issue. 2019-04-10 05:40:16 +00:00
Kconfig Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00