@@ -1870,20 +1870,20 @@ esp_err_t esp_http_client_add_auth(esp_http_client_handle_t client)
18701870 client -> auth_data -> method = strdup (HTTP_METHOD_MAPPING [client -> connection_info .method ]);
18711871
18721872 client -> auth_data -> nc = 1 ;
1873- HTTP_RET_ON_ERR_DBG (http_utils_get_substring_between (auth_header , "realm=\"" , "\"" , & client -> auth_data -> realm ), TAG , "Unable to extract substring between specified strings" );
1874- HTTP_RET_ON_ERR_DBG (http_utils_get_substring_between (auth_header , "algorithm=" , "," , & client -> auth_data -> algorithm ), TAG , "Unable to extract substring between specified strings" );
1873+ HTTP_RET_ON_ERR_DBG (http_utils_get_string_between (auth_header , "realm=\"" , "\"" , & client -> auth_data -> realm ), TAG , "Unable to extract substring between specified strings" );
1874+ HTTP_RET_ON_ERR_DBG (http_utils_get_string_between (auth_header , "algorithm=" , "," , & client -> auth_data -> algorithm ), TAG , "Unable to extract substring between specified strings" );
18751875
18761876 if (client -> auth_data -> algorithm == NULL ) {
1877- HTTP_RET_ON_ERR_DBG (http_utils_get_substring_after (auth_header , "algorithm=" , & client -> auth_data -> algorithm ), TAG , "Unable to extract substring after specified string" );
1877+ HTTP_RET_ON_ERR_DBG (http_utils_get_string_after (auth_header , "algorithm=" , & client -> auth_data -> algorithm ), TAG , "Unable to extract substring after specified string" );
18781878 }
18791879
18801880 if (client -> auth_data -> algorithm == NULL ) {
18811881 client -> auth_data -> algorithm = strdup ("MD5" );
18821882 }
18831883
1884- HTTP_RET_ON_ERR_DBG (http_utils_get_substring_between (auth_header , "qop=\"" , "\"" , & client -> auth_data -> qop ), TAG , "Unable to extract substring between specified strings" );
1885- HTTP_RET_ON_ERR_DBG (http_utils_get_substring_between (auth_header , "nonce=\"" , "\"" , & client -> auth_data -> nonce ), TAG , "Unable to extract substring between specified strings" );
1886- HTTP_RET_ON_ERR_DBG (http_utils_get_substring_between (auth_header , "opaque=\"" , "\"" , & client -> auth_data -> opaque ), TAG , "Unable to extract substring between specified strings" );
1884+ HTTP_RET_ON_ERR_DBG (http_utils_get_string_between (auth_header , "qop=\"" , "\"" , & client -> auth_data -> qop ), TAG , "Unable to extract substring between specified strings" );
1885+ HTTP_RET_ON_ERR_DBG (http_utils_get_string_between (auth_header , "nonce=\"" , "\"" , & client -> auth_data -> nonce ), TAG , "Unable to extract substring between specified strings" );
1886+ HTTP_RET_ON_ERR_DBG (http_utils_get_string_between (auth_header , "opaque=\"" , "\"" , & client -> auth_data -> opaque ), TAG , "Unable to extract substring between specified strings" );
18871887 client -> process_again = 1 ;
18881888
18891889 return ESP_OK ;
0 commit comments