mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-24 20:18:13 +02:00
proxy: handle double slash in paths
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
b373634012
commit
21e215ccea
4 changed files with 7 additions and 1 deletions
|
@ -118,6 +118,7 @@ func newProxyService(opt config.Options, r *mux.Router) (*proxy.Proxy, error) {
|
|||
|
||||
func newGlobalRouter(o *config.Options) *mux.Router {
|
||||
mux := httputil.NewRouter()
|
||||
mux.SkipClean(true)
|
||||
mux.Use(metrics.HTTPMetricsHandler(o.Services))
|
||||
mux.Use(log.NewHandler(log.Logger))
|
||||
mux.Use(log.AccessHandler(func(r *http.Request, status, size int, duration time.Duration) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue