Merge branch 'bugfix/fix_call_to_header_event_callback_v4.4' into 'release/v4.4'

fix: Fix call to event_handler on on_header state of HTTP Client (v4.4)

See merge request espressif/esp-idf!29957
This commit is contained in:
Jiang Jiang Jian 2024-04-01 19:49:26 +08:00
commit 718c649e06

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;
}