Scope namer returns canonical paths already

parent 470a1818
......@@ -23,7 +23,6 @@ import (
"math/rand"
"net/http"
"net/url"
gpath "path"
"strings"
"time"
......@@ -962,7 +961,7 @@ func setSelfLink(obj runtime.Object, req *restful.Request, namer ScopeNamer) err
newURL := *req.Request.URL
// use only canonical paths
newURL.Path = gpath.Clean(path)
newURL.Path = path
newURL.RawQuery = query
newURL.Fragment = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment