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
..
2018-09-11 09:44:12 +08:00
2019-04-03 19:57:46 +08:00
2018-10-20 12:07:24 +08:00
2019-03-27 20:24:28 +08:00
2018-09-11 09:44:12 +08:00
2018-09-11 09:44:12 +08:00
2018-09-11 09:44:12 +08:00
2018-10-20 12:07:24 +08:00
2019-03-27 20:24:28 +08:00