diff --git a/components/esp_http_client/esp_http_client.c b/components/esp_http_client/esp_http_client.c index 681956422c5..8363638196f 100644 --- a/components/esp_http_client/esp_http_client.c +++ b/components/esp_http_client/esp_http_client.c @@ -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];