add 'GET' method to pod exec handler, so it can support websocket

This commit is contained in:
guoliangshuai
2020-03-09 14:16:49 +08:00
parent 5c1c3886e0
commit 554d30a0b1

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
}