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:
Shubham Kulkarni
2020-08-13 14:26:07 +05:30
parent 9ac8b8739b
commit bb8981903e
3 changed files with 8 additions and 8 deletions

View File

@@ -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) {