mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
esp_http_client: Fix issue when response headers have empty value
Closes: https://github.com/espressif/esp-idf/issues/5553
This commit is contained in:
@@ -45,7 +45,7 @@ char *http_utils_assign_string(char **str, const char *new_str, int len)
|
||||
return NULL;
|
||||
}
|
||||
char *old_str = *str;
|
||||
if (l <= 0) {
|
||||
if (l < 0) {
|
||||
l = strlen(new_str);
|
||||
}
|
||||
if (old_str) {
|
||||
|
Reference in New Issue
Block a user