]> gitweb @ CieloNegro.org - Lucu.git/commitdiff
bugfix
authorpho <pho@cielonegro.org>
Mon, 7 Jan 2008 08:37:04 +0000 (17:37 +0900)
committerpho <pho@cielonegro.org>
Mon, 7 Jan 2008 08:37:04 +0000 (17:37 +0900)
darcs-hash:20080107083704-62b54-ef1dd3822b001eaacff35b45b9a2fbd6fecae565.gz

Network/HTTP/Lucu/Preprocess.hs

index 7f386a7589ce4580bf6f23b3c61878914ba6822b..6191273183347674fbaaf348565e5b3e76ee040d 100644 (file)
@@ -69,11 +69,12 @@ preprocess itr
                 completeAuthority req
 
                 case reqMethod req of
-                  GET  -> return ()
-                  HEAD -> writeItr itr itrWillDiscardBody True
-                  POST -> writeItr itr itrRequestHasBody True
-                  PUT  -> writeItr itr itrRequestHasBody True
-                  _    -> setStatus NotImplemented
+                  GET    -> return ()
+                  HEAD   -> writeItr itr itrWillDiscardBody True
+                  POST   -> writeItr itr itrRequestHasBody True
+                  PUT    -> writeItr itr itrRequestHasBody True
+                  DELETE -> return ()
+                  _      -> setStatus NotImplemented
                   
                 preprocessHeader req
     where