mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/fix_call_to_header_event_callback_v5.0' into 'release/v5.0'
fix: Fix call to event_handler on on_header state of HTTP Client (v5.0) See merge request espressif/esp-idf!29956
This commit is contained in:
commit
9d1abd72e5
@ -221,6 +221,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)
|
static int http_on_header_field(http_parser *parser, const char *at, size_t length)
|
||||||
{
|
{
|
||||||
esp_http_client_t *client = parser->data;
|
esp_http_client_t *client = parser->data;
|
||||||
|
http_on_header_event(client);
|
||||||
http_utils_append_string(&client->current_header_key, at, length);
|
http_utils_append_string(&client->current_header_key, at, length);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -241,7 +242,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->auth_header, at, length);
|
||||||
}
|
}
|
||||||
http_utils_append_string(&client->current_header_value, at, length);
|
http_utils_append_string(&client->current_header_value, at, length);
|
||||||
http_on_header_event(client);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user