forked from espressif/esp-idf
esp_https_ota: Fix counters for sending POST body
Closes: https://github.com/espressif/esp-idf/issues/6844
This commit is contained in:
@@ -123,9 +123,9 @@ static esp_err_t _http_connect(esp_http_client_handle_t http_client)
|
|||||||
ESP_LOGE(TAG, "Write failed");
|
ESP_LOGE(TAG, "Write failed");
|
||||||
return ESP_FAIL;
|
return ESP_FAIL;
|
||||||
}
|
}
|
||||||
|
post_len -= write_len;
|
||||||
|
post_data += write_len;
|
||||||
}
|
}
|
||||||
post_len -= write_len;
|
|
||||||
post_data += write_len;
|
|
||||||
}
|
}
|
||||||
header_ret = esp_http_client_fetch_headers(http_client);
|
header_ret = esp_http_client_fetch_headers(http_client);
|
||||||
if (header_ret < 0) {
|
if (header_ret < 0) {
|
||||||
|
Reference in New Issue
Block a user