From e059d8e0fd90a98c7e68a05f89f1b933ba00718a Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 6 Apr 2018 12:45:40 +0900 Subject: [PATCH] ing --- web/fasthttp/server-handler.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/fasthttp/server-handler.go b/web/fasthttp/server-handler.go index b2eb11c..551cbdb 100644 --- a/web/fasthttp/server-handler.go +++ b/web/fasthttp/server-handler.go @@ -76,11 +76,7 @@ func (sh *ServerHandlers) Servlet(serverCtx server.ServerCtx, ctx *fasthttp.Requ } var servlet Servlet - if contextPath == "" && len(sh.servlets) == 1 { - for _, s := range sh.servlets { - servlet = s - } - } else if servlet = sh.servlets[contextPath]; nil == servlet { + if servlet = sh.servlets[contextPath]; nil == servlet { return sh.NotFoundServelt }