mirror of https://github.com/k3s-io/k3s
Scope namer returns canonical paths already
parent
470a181846
commit
25a2a7d25a
|
@ -23,7 +23,6 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
gpath "path"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -962,7 +961,7 @@ func setSelfLink(obj runtime.Object, req *restful.Request, namer ScopeNamer) err
|
||||||
|
|
||||||
newURL := *req.Request.URL
|
newURL := *req.Request.URL
|
||||||
// use only canonical paths
|
// use only canonical paths
|
||||||
newURL.Path = gpath.Clean(path)
|
newURL.Path = path
|
||||||
newURL.RawQuery = query
|
newURL.RawQuery = query
|
||||||
newURL.Fragment = ""
|
newURL.Fragment = ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue