Commit f94c4651 authored by Jacob Vosmaer's avatar Jacob Vosmaer

That change does not belong here

parent c111e8aa
......@@ -19,7 +19,6 @@ func contentEncodingHandler(handleFunc serviceHandleFunc) serviceHandleFunc {
body = r.Body
case "gzip":
body, err = gzip.NewReader(r.Body)
defer body.Close()
default:
err = fmt.Errorf("unsupported content encoding: %s", contentEncoding)
}
......@@ -28,6 +27,7 @@ func contentEncodingHandler(handleFunc serviceHandleFunc) serviceHandleFunc {
fail500(w, fmt.Errorf("contentEncodingHandler: %v", err))
return
}
defer body.Close()
r.Body = body
r.Header.Del("Content-Encoding")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment