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 698fc38 commit a320376Copy full SHA for a320376
src/serverCompress/writer.go
@@ -14,6 +14,10 @@ const contentEncDeflate = "deflate"
14
var encodings = []string{contentEncGzip, contentEncDeflate}
15
16
func GetWriter(w http.ResponseWriter, r *http.Request) (wc io.WriteCloser, ok bool) {
17
+ if len(r.Header.Get("Range")) > 0 {
18
+ return nil, false
19
+ }
20
+
21
header := w.Header()
22
if len(header.Get("Content-Encoding")) > 0 {
23
return nil, false
0 commit comments