arduino-fetch
arduino-fetch copied to clipboard
GET requests timeout unless the response ends with a \n
I noticed my GET requests were talking over 15 seconds. I tracked down the issue to the use of readStringUntil:
https://github.com/instanceofMA/arduino-fetch/blob/main/src/Fetch.cpp#L132
This never returns if the body ends in any other character. Perhaps this should read into a buffer based on the content length? I'll have a go at fixing the issue if you think it's the appropriate solution?