fix(esp_http_client): Fix OTA failure with partial download enabled

This commit fixes an issue encountered during OTA when partial download
is enabled using an AWS signed URL restricted to GET requests.
It also adds an API to retrieve the OTA image size from the Content-Range header.
This commit is contained in:
nilesh.kale
2025-05-20 11:05:42 +05:30
parent 3e46a73964
commit caf828dfaf
5 changed files with 78 additions and 5 deletions

View File

@@ -47,6 +47,9 @@ This option is useful while fetching image from a service like AWS S3, where mbe
Default value of mbedTLS Rx buffer size is set to 16 KB. By using ``partial_http_download`` with ``max_http_request_size`` of 4 KB, size of mbedTLS Rx buffer can be reduced to 4 KB. With this configuration, memory saving of around 12 KB is expected.
.. note::
If the server uses chunked transfer encoding, partial downloads are not feasible because the total content length is not known in advance.
OTA Resumption
--------------