Scope namer returns canonical paths already

pull/6/head
Clayton Coleman 2016-05-21 00:00:56 -04:00
parent 470a181846
commit 25a2a7d25a
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3
1 changed files with 1 additions and 2 deletions

View File

@ -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 = ""