]> 127.0.0.1 Git - part/.git/commitdiff
Fix NewSyncMap v0.22.3
authorqydysky <32743305+qydysky@users.noreply.github.com>
Mon, 6 Feb 2023 14:48:39 +0000 (22:48 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Mon, 6 Feb 2023 14:48:39 +0000 (22:48 +0800)
web/Web.go

index 3fa2ee3d4b52f049d86eb24303b6d906acb566d1..4831e55dbb5ade7f3c098644b65776cb84cf13f3 100644 (file)
@@ -76,7 +76,6 @@ func NewSyncMap(conf *http.Server, m *sync.Map) (o *Web) {
        o.mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
                if wr, ok := m.Load(r.URL.Path); ok {
                        if f, ok := wr.(func(http.ResponseWriter, *http.Request)); ok {
-                               r.URL.Path = "/"
                                f(w, r)
                        }
                }