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 }