mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-11 01:01:27 +00:00
esp_http_client: Fixed exception on 401 without Www-Authenticate header
Closes https://github.com/espressif/esp-idf/issues/2246
This commit is contained in:
@@ -63,8 +63,14 @@ char *http_utils_assign_string(char **str, const char *new_str, int len)
|
||||
|
||||
void http_utils_trim_whitespace(char **str)
|
||||
{
|
||||
char *end;
|
||||
char *start = *str;
|
||||
char *end, *start;
|
||||
if (str == NULL) {
|
||||
return;
|
||||
}
|
||||
start = *str;
|
||||
if (start == NULL) {
|
||||
return;
|
||||
}
|
||||
// Trim leading space
|
||||
while (isspace((unsigned char)*start)) start ++;
|
||||
|
||||
|
Reference in New Issue
Block a user