feat(esp_http_client): detect oversized headers in tx buffer while sending request

This commit is contained in:
Ashish Sharma
2026-07-07 18:18:26 +08:00
parent db3825c799
commit 92cefa205a
10 changed files with 243 additions and 3 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ int http_header_generate_string(http_header_handle_t header, int index, char *bu
if (size + 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");
ESP_LOGE(TAG, "Buffer length is small to fit all the headers, required %d bytes, buffer size %d", size + 1, *buffer_len - 2);
break;
}
}