-
Notifications
You must be signed in to change notification settings - Fork 7.6k
HTTPClient getString halts if getSize is equal -1 #2667
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
Comments
If no Content-Length header is sent, _size seems to be -1 indeed. But more changes are needed than just checking for _size == -1. |
@alexodus very short report mate... what happens, when it happens, why it happens, where it happens (line number or something). Give some info here :P |
@me-no-dev I'm sorry for the short report! :P This is my code that hangs:
I have to check the size of response:
In my opinion it's a bad behaviour to permit the halt with _size==-1 |
seems like a viable fix :) how about you PR this line? |
1.0.2 will come out (today?) so you might want to hurry :D |
no, it's no a fix, it's a simple control in my code |
I've another issue, much more important, about HTTPClient in arduino esp32 version 1.0.2 rc2 (in 1.0.1 is ok). I hope to submit it today! :P |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This stale issue has been automatically closed. Thank you for your contributions. |
the condition inside getString
if(_size) {
when _size==-1, is incorrect
The text was updated successfully, but these errors were encountered: