mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
2814b5a330
This reverts commit 04ac8e43dbaf37e42452fef034606ae3f04e644b. When `http_on_header_event` is called, event_handler is invoked and then the current header key and header value are freed. In the previous approach, `http_on_header_event` was called from `http_on_header_value`, but it lead to an issue where if the value is received in multiple chunks, then the current header key and value were freed and thus header was not processed correctly which might result in connection issues. Calling `http_on_heaher_event` from `http_on_header_field` ensures that the current header field and value are processed properly Fixes https://github.com/espressif/esp-idf/issues/13497 Fixes https://github.com/espressif/esp-idf/issues/13097