X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FStaticFile.hs;h=4f669314aee7e599703e999433a63713fe1b4a6f;hp=f0e9bd80508d8589eba5121c2d61dec1b09ad1bc;hb=ece223c;hpb=9668dc27a02b59d7bfb1e9e40af3d2619700ad69 diff --git a/Network/HTTP/Lucu/StaticFile.hs b/Network/HTTP/Lucu/StaticFile.hs index f0e9bd8..4f66931 100644 --- a/Network/HTTP/Lucu/StaticFile.hs +++ b/Network/HTTP/Lucu/StaticFile.hs @@ -46,7 +46,8 @@ staticFile path } octetStream ∷ MIMEType -octetStream = mkMIMEType "application" "octet-stream" +{-# NOINLINE octetStream #-} +octetStream = parseMIMEType "application/octet-stream" handleStaticFile ∷ Bool → FilePath → Resource () handleStaticFile sendContent path