mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
esp_http_client: Added event for HTTP redirect
- Allows users to manually intercept and process the HTTP redirection when disable_auto_redirect (from the esp_http_client handle) is set to true Closes https://github.com/espressif/esp-idf/issues/8029
This commit is contained in:
@@ -461,6 +461,9 @@ esp_err_t http_event_handle(esp_http_client_event_t *evt)
|
||||
case HTTP_EVENT_DISCONNECTED:
|
||||
ESP_LOGI(TAG, "HTTP_EVENT_DISCONNECTED");
|
||||
break;
|
||||
case HTTP_EVENT_REDIRECT:
|
||||
ESP_LOGI(TAG, "HTTP_EVENT_REDIRECT");
|
||||
break;
|
||||
}
|
||||
return ESP_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user