diff --git a/components/esp_http_client/lib/http_auth.c b/components/esp_http_client/lib/http_auth.c index 66c71f91..c3975aba 100644 --- a/components/esp_http_client/lib/http_auth.c +++ b/components/esp_http_client/lib/http_auth.c @@ -81,6 +81,10 @@ char *http_auth_digest(const char *username, const char *password, esp_http_auth return NULL; } + if (auth_data->algorithm == NULL) { + auth_data->algorithm = "md5"; + } + ha1 = calloc(1, MD5_MAX_LEN); HTTP_MEM_CHECK(TAG, ha1, goto _digest_exit);