Revert "fix(esp_http_client): Call event_handler after header value is received"

This reverts commit 04ac8e43dbaf37e42452fef034606ae3f04e644b.

Fixes https://github.com/espressif/esp-idf/issues/13497
Fixes https://github.com/espressif/esp-idf/issues/13097
This commit is contained in:
Harshit Malpani 2024-04-01 13:15:57 +05:30
parent e1f8314fd7
commit 1451ec389b
No known key found for this signature in database
GPG Key ID: 441A8ACC7853D493

View File

@ -220,6 +220,7 @@ static int http_on_header_event(esp_http_client_handle_t client)
static int http_on_header_field(http_parser *parser, const char *at, size_t length)
{
esp_http_client_t *client = parser->data;
http_on_header_event(client);
http_utils_append_string(&client->current_header_key, at, length);
return 0;
@ -240,7 +241,6 @@ static int http_on_header_value(http_parser *parser, const char *at, size_t leng
http_utils_append_string(&client->auth_header, at, length);
}
http_utils_append_string(&client->current_header_value, at, length);
http_on_header_event(client);
return 0;
}