We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cdc9f8 commit 2bd4f79Copy full SHA for 2bd4f79
src/serverCompress/writer.go
@@ -15,6 +15,9 @@ var encodings = []string{contentEncGzip, contentEncDeflate}
15
16
func GetWriter(w http.ResponseWriter, r *http.Request) (wc io.WriteCloser, ok bool) {
17
header := w.Header()
18
+ if len(header.Get("Transfer-Encoding")) > 0 {
19
+ return nil, false
20
+ }
21
if len(header.Get("Content-Encoding")) > 0 {
22
return nil, false
23
}
0 commit comments