diff --git a/.changelog/10958.txt b/.changelog/10958.txt new file mode 100644 index 000000000..2f85b2a6d --- /dev/null +++ b/.changelog/10958.txt @@ -0,0 +1,4 @@ + +```release-note:bug +api: Reverted to using http/1 to fix a 1.1.2 regression in `alloc exec` sessions +``` diff --git a/api/api.go b/api/api.go index d1f985dbe..140089e4c 100644 --- a/api/api.go +++ b/api/api.go @@ -249,6 +249,10 @@ func defaultHttpClient() *http.Client { MinVersion: tls.VersionTLS12, } + // Default to http/1: alloc exec/websocket aren't supported in http/2 + // well yet: https://github.com/gorilla/websocket/issues/417 + transport.ForceAttemptHTTP2 = false + return httpClient }