Merge pull request #818 from guoliangshuai/master

add 'GET' method to pod exec handler, so it can support websocket
This commit is contained in:
Brian Goff
2020-03-09 13:30:47 -07:00
committed by GitHub

View File

@@ -59,7 +59,7 @@ func PodHandler(p PodHandlerConfig, debug bool) http.Handler {
WithExecStreamCreationTimeout(p.StreamCreationTimeout),
WithExecStreamIdleTimeout(p.StreamIdleTimeout),
),
).Methods("POST")
).Methods("POST", "GET")
r.NotFoundHandler = http.HandlerFunc(NotFound)
return r
}