esp_http_client: Resolve some bugs from the github community

- Closes https://github.com/espressif/esp-idf/issues/2135
- Closes https://github.com/espressif/esp-idf/issues/2208
- Closes https://github.com/espressif/esp-idf/issues/2213
This commit is contained in:
Tuan PM
2018-07-23 08:59:49 +07:00
parent 8892174383
commit 6ef558320a
3 changed files with 16 additions and 8 deletions
@@ -296,7 +296,7 @@ static void http_download_chunk()
static void http_perform_as_stream_reader()
{
char *buffer = malloc(MAX_HTTP_RECV_BUFFER);
char *buffer = malloc(MAX_HTTP_RECV_BUFFER + 1);
if (buffer == NULL) {
ESP_LOGE(TAG, "Cannot malloc http receive buffer");
return;