mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
fix http response handling in ota
This commit is contained in:
@@ -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)
|
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) {
|
if (status_code == HttpStatus_MovedPermanently || status_code == HttpStatus_Found) {
|
||||||
ESP_LOGW(TAG, "Handling HTTP redirection. ");
|
ESP_LOGW(TAG, "Handling HTTP redirection. ");
|
||||||
err = esp_http_client_set_redirection(http_client);
|
err = esp_http_client_set_redirection(http_client);
|
||||||
|
|||||||
Reference in New Issue
Block a user