khoih-prog / AsyncHTTPRequest_Generic

Simple Async HTTP Request library, supporting GET, POST, PUT, PATCH, DELETE and HEAD, on top of AsyncTCP libraries, such as AsyncTCP, ESPAsyncTCP, AsyncTCP_STM32, etc.. for ESP32 (including ESP32_S2, ESP32_S3 and ESP32_C3), WT32_ETH01 (ESP32 + LAN8720), ESP8266 (WiFi or W5x00) and currently STM32 with built-in LAN8742A Ethernet.
GNU General Public License v3.0
95 stars 30 forks source link

Fix "blank new line in chunk" bug #50

Closed 1618033 closed 2 years ago

1618033 commented 2 years ago

If a chunk contains an empty line ("\r\n") chunkLength will be 0 and _setReadyState(readyStateDone) will be called, resulting in truncated payloads. We actually need to wait for "0\r\n" to set state as done.

khoih-prog commented 2 years ago

HI @1618033

Thanks for the PR, which is merged now. Looking forward to receiving more of your bug-fixes and PRs

Best Regards,

khoih-prog commented 2 years ago

Hi @1618033

The new AsyncHTTPRequest_Generic v1.12.0 has just been released. Your contribution is noted in Contributions and Thanks

Best Regards,


Releases v1.12.0

  1. Add support to ESP32 boards using LwIP W5500 Ethernet
  2. Fix bug. Check Fix "blank new line in chunk" bug #50