esp_http_client: Fix header sent event bug
This commit is contained in:
parent
d943c8de94
commit
9b0e6e3b49
1 changed files with 1 additions and 0 deletions
|
@ -1076,6 +1076,7 @@ static esp_err_t esp_http_client_request_send(esp_http_client_handle_t client, i
|
||||||
|
|
||||||
client->data_written_index = 0;
|
client->data_written_index = 0;
|
||||||
client->data_write_left = client->post_len;
|
client->data_write_left = client->post_len;
|
||||||
|
http_dispatch_event(client, HTTP_EVENT_HEADER_SENT, NULL, 0);
|
||||||
client->state = HTTP_STATE_REQ_COMPLETE_HEADER;
|
client->state = HTTP_STATE_REQ_COMPLETE_HEADER;
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue