feat(esp_http_server): Modified the calculation of buf_len

Modified the calculation of buf_len, so that scratch buffer allocates
the memory according to requirement and not extra (except the last read chunk)
This commit is contained in:
hrushikesh.bhosale
2025-02-13 17:15:07 +05:30
parent 97b6043435
commit 9846584def
19 changed files with 120 additions and 94 deletions
@@ -8,3 +8,4 @@ Migration from 5.4 to 5.5
system
peripherals
protocols
@@ -0,0 +1,12 @@
Protocols
=========
:link_to_translation:`zh_CN:[中文]`
ESP HTTP SERVER
---------------
:ref:`CONFIG_HTTPD_MAX_REQ_HDR_LEN`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The :ref:`CONFIG_HTTPD_MAX_REQ_HDR_LEN` option now defines the maximum limit for the memory that can be allocated internally for the HTTP request header. The actual memory allocated for the header will depend on the size of the header received in the HTTP request, rather than being fixed to this value which was the case previously. This provides more flexible memory usage based on the actual header size.