esp-http-client: Fix incorrect event name HTTP_EVENT_HEADER_SENT

Closes https://github.com/espressif/esp-idf/issues/3095
This commit is contained in:
Jitin George
2019-05-02 16:09:55 +05:30
parent c5f58d11e8
commit 4e6d39f009
2 changed files with 4 additions and 2 deletions

View File

@@ -1119,7 +1119,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);
http_dispatch_event(client, HTTP_EVENT_HEADERS_SENT, NULL, 0);
client->state = HTTP_STATE_REQ_COMPLETE_HEADER;
return ESP_OK;
}