From 136f95448245daf0643ce6524382ccf80264d36e Mon Sep 17 00:00:00 2001 From: Andy Bursavich <abursavich@gmail.com> Date: Tue, 8 Sep 2020 17:22:22 -0700 Subject: [PATCH] Client allows server to specify server_max_window_bits --- dial.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dial.go b/dial.go index 0f2735d..9acca13 100644 --- a/dial.go +++ b/dial.go @@ -273,6 +273,10 @@ func verifyServerExtensions(copts *compressionOptions, h http.Header) (*compress copts.serverNoContextTakeover = true continue } + if strings.HasPrefix(p, "server_max_window_bits=") { + // We can't adjust the deflate window, but decoding with a larger window is acceptable. + continue + } return nil, fmt.Errorf("unsupported permessage-deflate parameter: %q", p) } -- GitLab