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

The content length was computed incorrectly #22

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

Conversation

cat101
Copy link

@cat101 cat101 commented Mar 3, 2018

I found that in certain conditions, the server would respond before the last CRLF was sent and then when the arduino tried put write it would receive a connection reset

I found that in certain conditions, the server would respond before the last CRLF was sent and then when the arduino tried put write it would receive a connection reset
@fnevgeny
Copy link

fnevgeny commented Sep 8, 2023

FWIW, it's off by 4 bytes, not 1 - two CRLF's are sent after the body. And both are extraneous IMO, see https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html : "[...] an HTTP/1.1 client MUST NOT preface or follow a request with an extra CRLF".

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.

2 participants