Skip to content

Commit 136f954

Browse files
abursavichnhooyr
authored andcommitted
Client allows server to specify server_max_window_bits
1 parent 81afa8a commit 136f954

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dial.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ func verifyServerExtensions(copts *compressionOptions, h http.Header) (*compress
273273
copts.serverNoContextTakeover = true
274274
continue
275275
}
276+
if strings.HasPrefix(p, "server_max_window_bits=") {
277+
// We can't adjust the deflate window, but decoding with a larger window is acceptable.
278+
continue
279+
}
276280

277281
return nil, fmt.Errorf("unsupported permessage-deflate parameter: %q", p)
278282
}

0 commit comments

Comments
 (0)