From 554d30a0b128536697724f81a0478dc3544aebca Mon Sep 17 00:00:00 2001 From: guoliangshuai Date: Mon, 9 Mar 2020 14:16:49 +0800 Subject: [PATCH] add 'GET' method to pod exec handler, so it can support websocket --- node/api/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/api/server.go b/node/api/server.go index f4986cf42..04980667b 100644 --- a/node/api/server.go +++ b/node/api/server.go @@ -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 }