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

The content length was computed incorrectly

Open cat101 opened this issue 6 years ago • 1 comments

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

cat101 avatar Mar 03 '18 15:03 cat101

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".

fnevgeny avatar Sep 08 '23 13:09 fnevgeny