Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add SVG to mime type map (closes #76)

  • Loading branch information...
commit 7641c79e0ecf960518314b1dc8763811c02ce4ac 1 parent e48c176
@gregorycollins gregorycollins authored
Showing with 3 additions and 1 deletion.
  1. +1 −1  snap-core.cabal
  2. +2 −0  src/Snap/Util/FileServe.hs
View
2  snap-core.cabal
@@ -1,5 +1,5 @@
name: snap-core
-version: 0.5.1.2
+version: 0.5.1.3
synopsis: Snap: A Haskell Web Framework (Core)
description:
View
2  src/Snap/Util/FileServe.hs
@@ -128,6 +128,7 @@ type MimeMap = Map FilePath ByteString
-- > ( ".qt" , "video/quicktime" ),
-- > ( ".sig" , "application/pgp-signature" ),
-- > ( ".spl" , "application/futuresplash" ),
+-- > ( ".svg" , "image/svg+xml" ),
-- > ( ".swf" , "application/x-shockwave-flash" ),
-- > ( ".tar" , "application/x-tar" ),
-- > ( ".tar.bz2" , "application/x-bzip-compressed-tar" ),
@@ -185,6 +186,7 @@ defaultMimeTypes = Map.fromList [
( ".qt" , "video/quicktime" ),
( ".sig" , "application/pgp-signature" ),
( ".spl" , "application/futuresplash" ),
+ ( ".svg" , "image/svg+xml" ),
( ".swf" , "application/x-shockwave-flash" ),
( ".tar" , "application/x-tar" ),
( ".tar.bz2" , "application/x-bzip-compressed-tar" ),
Please sign in to comment.
Something went wrong with that request. Please try again.