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
..
2019-02-15 17:06:57 +08:00
2019-02-27 13:30:25 +08:00
2019-01-29 13:37:01 +01:00
2019-02-28 07:31:29 +00:00
2019-04-09 09:57:18 +10:00
2019-04-14 06:25:53 +00:00
2018-11-27 13:59:24 +08:00
2019-03-15 11:31:22 +08:00
2018-11-27 13:59:24 +08:00
2019-03-10 06:21:37 +00:00
2019-04-16 16:04:15 +08:00
2019-04-17 17:44:23 +08:00
2019-01-29 13:37:01 +01:00
2019-02-05 08:47:03 +08:00
2019-04-23 14:28:53 +05:30
2019-04-08 11:22:12 +05:30
2019-02-27 14:19:06 +05:30
2019-02-25 09:13:39 +00:00
2019-01-23 16:47:23 +05:30
2019-01-14 08:25:56 +00:00
2019-03-08 09:49:37 +00:00
2019-03-20 12:19:23 +08:00
2019-01-29 14:08:35 +08:00
2018-10-20 12:07:24 +08:00
2019-01-29 13:37:01 +01:00
2019-03-07 09:59:40 +01:00
2019-02-26 20:59:49 +08:00
2019-03-20 18:30:25 +11:00
2019-04-17 17:28:31 +08:00
2019-01-29 13:37:01 +01:00
2019-01-29 13:37:01 +01:00
2019-03-11 12:11:05 +08:00
2019-01-29 13:37:01 +01:00
2019-03-13 16:10:27 +01:00
2019-01-29 13:37:01 +01:00
2019-02-25 10:34:27 +01:00
2019-04-14 06:23:38 +00:00
2019-01-29 13:37:01 +01:00
2019-02-14 18:51:43 +08:00
2019-04-09 11:30:54 +05:30
2019-02-27 12:21:23 +01:00
2018-10-20 12:07:24 +08:00
2019-04-09 09:57:18 +10:00
2019-02-14 18:51:43 +08:00
2019-01-29 13:37:01 +01:00
2019-02-27 14:19:06 +05:30
2019-03-11 12:11:05 +08:00
2019-03-12 13:31:44 +08:00
2019-01-29 13:37:01 +01:00
2019-02-25 10:34:27 +01:00
2019-01-29 13:37:01 +01:00
2019-02-15 10:45:34 +00:00
2018-10-20 12:07:24 +08:00
2018-11-16 12:42:02 +08:00