[server] Minor fixup for dummy handler.
This commit is contained in:
parent
de4234e2d7
commit
dbaa404abf
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue