esp_http_client: fix truncated headers

Signed-off-by: yuanjm <yuanjianmin@espressif.com>

Merges https://github.com/espressif/esp-idf/pull/6370
This commit is contained in:
Clickau
2021-01-07 13:47:22 +02:00
committed by yuanjm
parent b92c290e56
commit 308c31e2f1
3 changed files with 65 additions and 13 deletions

View File

@@ -30,6 +30,19 @@
*/
char *http_utils_assign_string(char **str, const char *new_str, int len);
/**
* @brief Realloc *str and append new_str to it, if not NULL; assign new_str to *str pointer if NULL
*
* @param str pointer to string pointer
* @param new_str assign this string to str
* @param len length of string, 0 if new_str is zero terminated
*
* @return
* - new_str pointer
* - NULL
*/
char *http_utils_append_string(char **str, const char *new_str, int len);
/**
* @brief Remove white space at begin and end of string
*