Skip to content

Commit 9cdc9f8

Browse files
committed
feat(serverCompress): allow compress for range request
This reverts commit a320376.
1 parent 840b6cb commit 9cdc9f8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/serverCompress/writer.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ const contentEncDeflate = "deflate"
1414
var encodings = []string{contentEncGzip, contentEncDeflate}
1515

1616
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-
2117
header := w.Header()
2218
if len(header.Get("Content-Encoding")) > 0 {
2319
return nil, false

0 commit comments

Comments
 (0)