From a0b05817ef01c3a8f1d624d015101f22703012b9 Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 6 Apr 2018 12:24:50 +0900 Subject: [PATCH] ing --- web/fasthttp/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {