Permanent error with esp_http_client
Posted: Tue Aug 20, 2019 12:09 pm
I do not have any idea why it was made in this way, therefore, it looks like a bug in the following code:
In function static esp_err_t esp_http_check_response(esp_http_client_handle_t client):
I do not need auto redirection, so I set disable_auto_redirect=1 and max_redirection_count is equal to 0 by default. As a result any time I have valid response without redirection I get error ESP_ERR_HTTP_MAX_REDIRECT.
Could anyone tell me is this a bug or did I lost something?
In function static esp_err_t esp_http_check_response(esp_http_client_handle_t client):
Code: Select all
if (client->redirect_counter >= client->max_redirection_count || client->disable_auto_redirect) {
ESP_LOGE(TAG, "Error, reach max_redirection_count count=%d", client->redirect_counter);
return ESP_ERR_HTTP_MAX_REDIRECT;
}
Could anyone tell me is this a bug or did I lost something?