Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
25a2a7d2
Unverified
Commit
25a2a7d2
authored
May 21, 2016
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scope namer returns canonical paths already
parent
470a1818
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
resthandler.go
pkg/apiserver/resthandler.go
+1
-2
No files found.
pkg/apiserver/resthandler.go
View file @
25a2a7d2
...
@@ -23,7 +23,6 @@ import (
...
@@ -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
...
@@ -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
=
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment