Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_call_to_header_event_callback' into 'master'
Browse files Browse the repository at this point in the history
fix: Fix call to event_handler on on_header state of HTTP Client

Closes IDFGH-12486

See merge request espressif/esp-idf!29953
  • Loading branch information
jack0c committed Apr 1, 2024
2 parents d954057 + 2814b5a commit b02a2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_http_client/esp_http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,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;
Expand All @@ -268,7 +269,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;
}

Expand Down

0 comments on commit b02a2ea

Please sign in to comment.