Skip to content

Commit

Permalink
Merge pull request #7950 from satnam6502/head2
Browse files Browse the repository at this point in the history
Make the API server deal with HEAD requests via the service proxy
  • Loading branch information
lavalamp committed May 8, 2015
2 parents 1014831 + 220e754 commit b02149d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/apiserver/api_installer.go
Expand Up @@ -514,6 +514,8 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
addProxyRoute(ws, "PUT", a.prefix, action.Path, proxyHandler, kind, resource, action.Params)
addProxyRoute(ws, "POST", a.prefix, action.Path, proxyHandler, kind, resource, action.Params)
addProxyRoute(ws, "DELETE", a.prefix, action.Path, proxyHandler, kind, resource, action.Params)
addProxyRoute(ws, "HEAD", a.prefix, action.Path, proxyHandler, kind, resource, action.Params)
addProxyRoute(ws, "TRACE", a.prefix, action.Path, proxyHandler, kind, resource, action.Params)
case "CONNECT":
for _, method := range connecter.ConnectMethods() {
route := ws.Method(method).Path(action.Path).
Expand Down

0 comments on commit b02149d

Please sign in to comment.