Make non-compression content-types configurable #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "zeripath/gzip:ignore_event_stream"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Make non-compression content-types configurable and don't compress text/eventstream by default.
Signed-off-by: Andrew Thornton art27@cantab.net
should we send a pull to https://github.com/go-macaron/gzip too?
@ -98,0 +123,4 @@
}
opt.CompressContentTypesFunc = func(contentType string) bool {
compress, ok := boolMap[contentType]
Shouldn't this contemplate
Content-Type: text/html; charset=....
?https://tools.ietf.org/html/rfc7231#section-3.1.1.5
To get the actual content type, anything after and including ';' must be ignored and then have spaces trimmed.