From dbaa404abfc9ff6888f15283f66d0de6954c46b4 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Sat, 18 Dec 2021 17:30:45 +0200 Subject: [PATCH] [server] Minor fixup for dummy handler. --- sources/cmd/server/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/cmd/server/server.go b/sources/cmd/server/server.go index bdfee91..17dec02 100644 --- a/sources/cmd/server/server.go +++ b/sources/cmd/server/server.go @@ -73,6 +73,8 @@ func (_server *server) ServeUnwrapped (_context *fasthttp.RequestCtx) () { if _server.dummy { if !_server.dummyEmpty { _server.ServeDummy (_context) + } else { + _context.Response.SetStatusCode (fasthttp.StatusOK) } if _server.dummyDelay != 0 { time.Sleep (_server.dummyDelay)