From 91387a741b659ba709a67d55d68b74cb3daa812a Mon Sep 17 00:00:00 2001 From: Jan Verbeek Date: Sat, 16 Dec 2023 07:15:00 +0100 Subject: [PATCH] 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. --- src/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.go b/src/server.go index a52dcfd..e655896 100644 --- a/src/server.go +++ b/src/server.go @@ -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 {