Skip to content

Commit

Permalink
Removed extra log I missed and added support for "text/css; charset=u…
Browse files Browse the repository at this point in the history
…tf8"
  • Loading branch information
CasualSuperman committed Nov 26, 2013
1 parent 4fe938c commit 8c19e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func CompressFilter(c *Controller, fc []Filter) {
func (c *CompressResponseWriter) prepareHeaders() {
if c.compressionType != "" {
responseMime := c.Header().Get("Content-Type")
responseMime = strings.TrimSpace(strings.SplitN(responseMime, ";", 2)[0])
shouldEncode := false

for _, compressableMime := range compressableMimes {
Expand Down Expand Up @@ -95,7 +96,6 @@ func (c *CompressResponseWriter) DetectCompressionType(req *Request, resp *Respo

for _, encoding := range acceptedEncodings {
encoding = strings.TrimSpace(encoding)
println(encoding)
encodingParts := strings.SplitN(encoding, ";", 2)

// If we are the format "gzip;q=0.8"
Expand Down

0 comments on commit 8c19e24

Please sign in to comment.