diff --git a/web/fasthttp/server.go b/web/fasthttp/server.go index 98d7114..061b27e 100644 --- a/web/fasthttp/server.go +++ b/web/fasthttp/server.go @@ -139,10 +139,12 @@ func (s *Server) httpHandler(ctx *fasthttp.RequestCtx) { ) if servlet = s.ServerHandler.(ServerHandler).Servlet(s.ctx, ctx); nil == servlet { - s.onError(ctx, fasthttp.StatusInternalServerError, err) + s.onError(ctx, fasthttp.StatusNotFound, err) return } + servletCtx := servlet.ServletCtx(s.ctx) + go servlet.Handle(servletCtx, ctx) } func (s *Server) onError(ctx *fasthttp.RequestCtx, status int, reason error) {