sirleech/Webduino

httpSuccess() extraHeaders when used causes no response body to show

Closed this issue · 3 comments

httpSuccess() extraHeaders when used causes no response body to show

Try substituting in the file WebServer.cpp (at lines 266-267):

if (extraHeaders)
print(extraHeaders);

with the following code:

if (extraHeaders) {
print(extraHeaders);
printCRLF();
}

HTTP Responses needs to end with double CRLF.
For me it works.

Giovanni

Committed the above fix. Thanks Giovanni.

I reverted this in 1711391

Extra headers should always be terminated with CRLF.