diff --git a/components/esp_http_client/lib/http_header.c b/components/esp_http_client/lib/http_header.c index 65d7aa0ded..83650c935e 100644 --- a/components/esp_http_client/lib/http_header.c +++ b/components/esp_http_client/lib/http_header.c @@ -188,6 +188,7 @@ int http_header_generate_string(http_header_handle_t header, int index, char *bu if (siz + 1 > *buffer_len - 2) { ret_idx = idx - 1; + break; } }