fix http response handling in ota

This commit is contained in:
Sebastien
2019-12-02 11:22:22 -05:00
parent 9ebe856bf4
commit 3cc74534d1

View File

@@ -284,7 +284,7 @@ static bool process_again(int status_code)
}
static esp_err_t _http_handle_response_code(esp_http_client_handle_t http_client, int status_code)
{
esp_err_t err;
esp_err_t err=ESP_OK;
if (status_code == HttpStatus_MovedPermanently || status_code == HttpStatus_Found) {
ESP_LOGW(TAG, "Handling HTTP redirection. ");
err = esp_http_client_set_redirection(http_client);