fix spell

This commit is contained in:
kingecg 2023-12-17 10:33:29 +08:00
parent 8204c37dc3
commit d84337c845
5 changed files with 3 additions and 4 deletions

View File

@ -128,7 +128,7 @@ RestMux 提供
### handler
目录 hander
目录 handler
提供文件和代理两种handler
其中proxy handler 提供简单的负载均衡和会话粘滞功能

View File

@ -7,9 +7,8 @@ import (
"sort"
"strings"
handler "git.pyer.club/kingecg/gohttpd/hander"
handler "git.pyer.club/kingecg/gohttpd/handler"
"git.pyer.club/kingecg/gohttpd/model"
"git.pyer.club/kingecg/gologger"
logger "git.pyer.club/kingecg/gologger"
)
@ -31,7 +30,7 @@ func (route *Route) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
func (route *Route) Match(r *http.Request) bool {
l := gologger.GetLogger("Route")
l := logger.GetLogger("Route")
l.Debug(fmt.Sprintf("match route: %s %s", r.Method, r.URL.Path))
if route.Method != "" && route.Method != r.Method {
l.Debug("method not match")