Add redirect things for dumb js apps
parent
ec1e0cdf2e
commit
1af274dc1d
|
|
@ -15,6 +15,7 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|
@ -131,7 +132,7 @@ func (s *Server) doAuth(foo http.HandlerFunc) http.HandlerFunc {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if config.GetNoPath(key) {
|
if config.GetNoPath(key) && path.Ext(r.URL.Path) == "" {
|
||||||
r.URL.Path = "/"
|
r.URL.Path = "/"
|
||||||
}
|
}
|
||||||
foo(w, r)
|
foo(w, r)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue