Skip to content

Commit

Permalink
esp_http_client: Do not overwrite HTTP method in case of chunk request
Browse files Browse the repository at this point in the history
Closes #6234
  • Loading branch information
shubhamkulkarni97 authored and espressif-bot committed Mar 31, 2021
1 parent aecfbf9 commit 1bacc13
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/esp_http_client/esp_http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,6 @@ static int http_client_prepare_first_line(esp_http_client_handle_t client, int w
http_header_set_format(client->request->headers, "Content-Length", "%d", write_len);
} else {
esp_http_client_set_header(client, "Transfer-Encoding", "chunked");
esp_http_client_set_method(client, HTTP_METHOD_POST);
}

const char *method = HTTP_METHOD_MAPPING[client->connection_info.method];
Expand Down

0 comments on commit 1bacc13

Please sign in to comment.