mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-02 02:42:57 +02:00
Merge pull request #310 from desimone/bug/262
proxy: handle double slash in paths
This commit is contained in:
commit
cfeb5e1ef9
4 changed files with 7 additions and 1 deletions
|
@ -20,7 +20,9 @@ import (
|
|||
|
||||
// Handler returns the proxy service's ServeMux
|
||||
func (p *Proxy) Handler() http.Handler {
|
||||
r := httputil.NewRouter().StrictSlash(true)
|
||||
r := httputil.NewRouter()
|
||||
r.SkipClean(true)
|
||||
r.StrictSlash(true)
|
||||
r.Use(middleware.ValidateHost(func(host string) bool {
|
||||
_, ok := p.routeConfigs[host]
|
||||
return ok
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue