[server] Minor fixup for dummy handler.

This commit is contained in:
Ciprian Dorin Craciun 2021-12-18 17:30:45 +02:00
parent de4234e2d7
commit dbaa404abf

View file

@ -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)