Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #136 from basvandijk/compress-json

Also compress JSON data
  • Loading branch information...
commit 4ed60bc0f33cb3691adfe3bb412a83a7481e0433 2 parents bb41153 + d9bc0b1
@gregorycollins gregorycollins authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/Snap/Util/GZip.hs
View
1  src/Snap/Util/GZip.hs
@@ -137,6 +137,7 @@ noCompression = modifyResponse $ setHeader "Content-Encoding" "identity"
compressibleMimeTypes :: Set ByteString
compressibleMimeTypes = Set.fromList [ "application/x-font-truetype"
, "application/x-javascript"
+ , "application/json"
, "text/css"
, "text/html"
, "text/javascript"
Please sign in to comment.
Something went wrong with that request. Please try again.