arduino-fetch icon indicating copy to clipboard operation
arduino-fetch copied to clipboard

GET requests timeout unless the response ends with a \n

Open matthewturner opened this issue 2 years ago • 0 comments

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?

matthewturner avatar Oct 20 '23 21:10 matthewturner