mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-18 10:31:09 +00:00
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:
@@ -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
|
||||
--------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user