Merge branch 'bugfix/esp_http_client_add_warning' into 'master'

Add error print in http_header_generate_string if buffer size

Closes IDFGH-2996

See merge request espressif/esp-idf!8265
pull/5106/head
Mahavir Jain 2020-04-06 18:02:41 +08:00
commit 9d67c1548e
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -191,6 +191,7 @@ int http_header_generate_string(http_header_handle_t header, int index, char *bu
if (siz + 1 > *buffer_len - 2) {
// if this item would not fit to the buffer, return the index of the last fitting one
ret_idx = idx - 1;
ESP_LOGE(TAG, "Buffer length is small to fit all the headers");
break;
}
}