]> granicus.if.org Git - esp-idf/commit
esp_http_client: Add support to check the binary length of the recieved stream and...
authorHrudaynath Dhabe <hrudaynath.dhabe@espressif.com>
Fri, 2 Aug 2019 11:18:44 +0000 (19:18 +0800)
committerMahavir Jain <mahavir@espressif.com>
Fri, 2 Aug 2019 11:18:44 +0000 (19:18 +0800)
commitd4091f7cda3b17ba35a291396373a8142b972f7f
tree90dd0df0a65691007f7c85d87f590d1b5cb6abe9
parent90a6855d010593a522a24ab7c5b6b6bcbfab7c27
esp_http_client: Add support to check the binary length of the recieved stream and compare it with the size mentioned in the header.

While downloading OTA firmware, if their is a Origin Respnse Timeout or the binary is only partially downloaded, OTA failure is observed. Checking binary size can also be helpful for simple http client applications.

Closes https://github.com/espressif/esp-idf/issues/3004
components/esp_http_client/esp_http_client.c
components/esp_http_client/include/esp_http_client.h