mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
Merge branch 'bugfix/http_auth_for_multiple_redirect' into 'master'
esp_http_client: Fix redirect by resetting auth_header before parsing Closes IDF-4821 See merge request espressif/esp-idf!17736
This commit is contained in:
@@ -522,6 +522,10 @@ static esp_err_t esp_http_client_prepare(esp_http_client_handle_t client)
|
|||||||
free(client->location);
|
free(client->location);
|
||||||
client->location = NULL;
|
client->location = NULL;
|
||||||
}
|
}
|
||||||
|
if (client->auth_header != NULL) {
|
||||||
|
free(client->auth_header);
|
||||||
|
client->auth_header = NULL;
|
||||||
|
}
|
||||||
http_parser_init(client->parser, HTTP_RESPONSE);
|
http_parser_init(client->parser, HTTP_RESPONSE);
|
||||||
if (client->connection_info.username) {
|
if (client->connection_info.username) {
|
||||||
char *auth_response = NULL;
|
char *auth_response = NULL;
|
||||||
|
Reference in New Issue
Block a user