]> gitweb @ CieloNegro.org - Lucu.git/commitdiff
Fix a long-standing bug in generating Allowed header values.
authorPHO <pho@cielonegro.org>
Tue, 27 Dec 2011 23:44:42 +0000 (08:44 +0900)
committerPHO <pho@cielonegro.org>
Tue, 27 Dec 2011 23:44:42 +0000 (08:44 +0900)
Network/HTTP/Lucu/Resource/Internal.hs

index d0d18b79afe6bcd5de2dbe4810fbac0e51d65120..7398f93e045cff87dd51b1241e23b0da70bcd3ca 100644 (file)
@@ -187,8 +187,8 @@ spawnRsrc (Resource {..}) ni@(NI {..})
                           $ map cs allowedMethods
 
       allowedMethods ∷ [Ascii]
-      allowedMethods = nub $ concat [ methods resGet    ["GET"]
-                                    , methods resHead   ["GET", "HEAD"]
+      allowedMethods = nub $ concat [ methods resGet    ["GET", "HEAD"]
+                                    , methods resHead   ["HEAD"]
                                     , methods resPost   ["POST"]
                                     , methods resPut    ["PUT"]
                                     , methods resDelete ["DELETE"]