QuickSander / ArduinoHttpServer

Server side minimalistic HTTP protocol implementation for the Arduino platform.
GNU General Public License v3.0
23 stars 11 forks source link

Bugfix: Infinite loop #12

Closed BlueAndi closed 5 years ago

QuickSander commented 5 years ago

Hi, what kind of Stream did you use where you encountered this infinite loop?

Stream documentation says: "Returns: the first byte of incoming data available (or -1 if no data is available)"

I'm afraid if I merge this it won't eat-up any remaining null characters.

BlueAndi commented 5 years ago

I use the lib together with https://github.com/UIPEthernet/UIPEthernet So I guess the read method provided by UIPClient returns 0 instead of -1.

I try to dig down, thanks.