Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karakum
Copy link

@karakum karakum commented Jun 6, 2021

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
Copy link
Author

karakum commented Jun 15, 2021

@witnessmenow up

1 similar comment
@karakum
Copy link
Author

karakum commented Nov 29, 2021

@witnessmenow up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant