witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.12k stars 307 forks source link

BUGFIX Read response body according to Content-Length bytes #244

Open karakum opened 3 years ago

karakum commented 3 years ago

Client read only part of response and break straight away of client->available() got FALSE , so parsing always fail. But there can be unread data! You just have to wait until the timeout expires and then give up and return that already read.

This PS try out to read all bytes according to header Content-Length if it present.

karakum commented 3 years ago

@witnessmenow up

karakum commented 2 years ago

@witnessmenow up