Skip to content

Commit 95b0793

Browse files
Use original request method for custom routes (#1034)
This will make app support custom routes other than GET
1 parent 83f1bda commit 95b0793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

k8s/apiserver/installer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ func (r *defaultInstaller) registerResourceRouteOperation(ws *restful.WebService
583583
ResourceIdentifier: identifier,
584584
Path: rpath,
585585
URL: req.Request.URL,
586-
Method: http.MethodGet,
586+
Method: req.Request.Method,
587587
Headers: req.Request.Header,
588588
Body: req.Request.Body,
589589
})

0 commit comments

Comments
 (0)