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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user