diff --git a/components/esp_http_client/esp_http_client.c b/components/esp_http_client/esp_http_client.c index f7886bf469..19efdcdc6b 100644 --- a/components/esp_http_client/esp_http_client.c +++ b/components/esp_http_client/esp_http_client.c @@ -1083,6 +1083,7 @@ static esp_err_t esp_http_client_request_send(esp_http_client_handle_t client, i client->data_written_index = 0; client->data_write_left = client->post_len; + http_dispatch_event(client, HTTP_EVENT_HEADER_SENT, NULL, 0); client->state = HTTP_STATE_REQ_COMPLETE_HEADER; return ESP_OK; }