Skip to content

GET requests timeout unless the response ends with a \n #15

Open
@matthewturner

Description

@matthewturner

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions