From 7addde1ec4840e9c5ab1cfbaa4091affca9c1883 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Thu, 8 Oct 2009 13:11:49 +0200 Subject: [PATCH] jsonp dep; TODO updates; video mime types --- TODO | 4 ++-- Web/Restful/Helpers/Static.hs | 2 ++ restful.cabal | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index cabb808c..c1392343 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,4 @@ Catch exceptions and return as 500 errors approot -Request parameters without a request object? -More checking on parameters (minimum length etc) +remove listDetail? +int patterns (#name) diff --git a/Web/Restful/Helpers/Static.hs b/Web/Restful/Helpers/Static.hs index 8e43925a..de7a0a19 100644 --- a/Web/Restful/Helpers/Static.hs +++ b/Web/Restful/Helpers/Static.hs @@ -57,6 +57,8 @@ mimeType "html" = "text/html" mimeType "png" = "image/png" mimeType "gif" = "image/gif" mimeType "txt" = "text/plain" +mimeType "flv" = "video/x-flv" +mimeType "ogv" = "video/ogg" mimeType _ = "application/octet-stream" ext :: String -> String diff --git a/restful.cabal b/restful.cabal index e97d62ed..9981621f 100644 --- a/restful.cabal +++ b/restful.cabal @@ -16,7 +16,7 @@ library old-locale >= 1.0.0.1, time >= 1.1.3, hack-middleware-clientsession, - hack-middleware-jsonp >= 0.0.1, + hack-middleware-jsonp >= 0.0.2, hack-middleware-cleanpath >= 0.0.1, hack-middleware-gzip, hack-handler-cgi >= 0.0.2,