From 25a2a7d25a45edffcbdaefc20c93822fc71637e0 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Sat, 21 May 2016 00:00:56 -0400 Subject: [PATCH] Scope namer returns canonical paths already --- pkg/apiserver/resthandler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/apiserver/resthandler.go b/pkg/apiserver/resthandler.go index 4a1e970067..0963203b58 100644 --- a/pkg/apiserver/resthandler.go +++ b/pkg/apiserver/resthandler.go @@ -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 = ""