From: PHO Date: Tue, 27 Dec 2011 23:44:42 +0000 (+0900) Subject: Fix a long-standing bug in generating Allowed header values. X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=f093019cb10a88fee13b8c99d05b60f895ceb01f;p=Lucu.git Fix a long-standing bug in generating Allowed header values. --- diff --git a/Network/HTTP/Lucu/Resource/Internal.hs b/Network/HTTP/Lucu/Resource/Internal.hs index d0d18b7..7398f93 100644 --- a/Network/HTTP/Lucu/Resource/Internal.hs +++ b/Network/HTTP/Lucu/Resource/Internal.hs @@ -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"]