mirror of
https://github.com/espressif/esp-idf.git
synced 2026-06-02 03:06:37 +03: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 @@ ESP HTTPS OTA 升级
|
||||
|
||||
mbedTLS Rx buffer 的默认大小为 16 KB,但如果将 ``partial_http_download`` 的 ``max_http_request_size`` 设置为 4 KB,便能将 mbedTLS Rx 的 buffer 减小到 4 KB。使用这一配置方式预计可以节省约 12 KB 内存。
|
||||
|
||||
.. note::
|
||||
如果服务器使用分块传输编码,则无法进行部分下载,因为无法预先获知总内容长度。
|
||||
|
||||
OTA 恢复
|
||||
--------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user