Terminate simple server success response with double CRLF (#3542)

The simple success case had only the status line plus a single CRLF,
and pedantic HTTP client implementations (`hyper`) stumbled over
this. A double CRLF makes it OK.

Fixes #3541.
This commit is contained in:
Jan Verbeek 2023-12-16 07:15:00 +01:00 committed by GitHub
parent e8b34cb00d
commit 91387a741b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ func (server *httpServer) handleHttpRequest(conn net.Conn) string {
}
server.actionChannel <- actions
return httpOk
return httpOk + crlf
}
func parseGetParams(query string) getParams {