esp_https_ota: Fix counters for sending POST body

Closes: https://github.com/espressif/esp-idf/issues/6844
This commit is contained in:
Shubham Kulkarni 2021-04-08 17:34:57 +05:30 committed by bot
parent 80723de12d
commit b8b104a8f0

View File

@ -123,9 +123,9 @@ static esp_err_t _http_connect(esp_http_client_handle_t http_client)
ESP_LOGE(TAG, "Write failed");
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);
if (header_ret < 0) {