Merge branch 'bugfix/http_code_v4.3' into 'release/v4.3'

esp_http_client, esp_https_ota: Handle HTTP 303 status code (v4.3)

See merge request espressif/esp-idf!17733
This commit is contained in:
Mahavir Jain
2022-04-11 19:29:29 +08:00
3 changed files with 22 additions and 1 deletions

View File

@@ -812,7 +812,9 @@ static esp_err_t esp_http_check_response(esp_http_client_handle_t client)
switch (client->response->status_code) {
case HttpStatus_MovedPermanently:
case HttpStatus_Found:
case HttpStatus_SeeOther:
case HttpStatus_TemporaryRedirect:
case HttpStatus_PermanentRedirect:
esp_http_client_set_redirection(client);
client->redirect_counter ++;
client->process_again = 1;