esp-idf/components
Vikram Dattu 344cb99d34 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-23 14:28:21 +05:30
..
2018-09-11 09:44:12 +08:00
2018-10-20 12:07:24 +08:00
2019-01-23 17:02:02 +08:00
2018-10-20 12:07:24 +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
2019-03-06 20:01:36 +08:00
2018-11-26 15:55:17 +11:00
2018-09-11 09:44:12 +08:00
2018-10-20 12:07:24 +08:00