esp-idf/components/esp_http_client
Vikram Dattu d154723a84 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:53 +05:30
..
include esp_http_client: add support for using certs from global ca store 2019-02-27 14:19:06 +05:30
lib tcp_transport: renamed possibly generic function names to be esp_ prefixed and not to colide with user namespace 2018-10-02 14:16:48 +02: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-23 14:28:53 +05:30
Kconfig Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00