Commit 195c9b24 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #2359 from kbynd/patch-1

content-length not set in case EnableGZIP=true
parents 86f6470f 2f6da122
......@@ -67,6 +67,7 @@ func (output *BeegoOutput) Body(content []byte) error {
}
if b, n, _ := WriteBody(encoding, buf, content); b {
output.Header("Content-Encoding", n)
output.Header("Content-Length", strconv.Itoa(buf.Len()))
} else {
output.Header("Content-Length", strconv.Itoa(len(content)))
}
......
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