mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_http_client: Add new status code 303 and 308
This commit is contained in:
parent
9bec068e52
commit
983547290b
@ -802,7 +802,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;
|
||||
|
@ -150,7 +150,9 @@ typedef enum {
|
||||
HttpStatus_MultipleChoices = 300,
|
||||
HttpStatus_MovedPermanently = 301,
|
||||
HttpStatus_Found = 302,
|
||||
HttpStatus_SeeOther = 303,
|
||||
HttpStatus_TemporaryRedirect = 307,
|
||||
HttpStatus_PermanentRedirect = 308,
|
||||
|
||||
/* 4xx - Client Error */
|
||||
HttpStatus_BadRequest = 400,
|
||||
|
Loading…
Reference in New Issue
Block a user