From: Dagfinn Ilmari Mannsåker Date: Sun, 9 Dec 2012 19:25:50 +0000 (+0000) Subject: Sort list of allowed methods. RT#81825 X-Git-Tag: 1.06~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-REST.git;a=commitdiff_plain;h=04f96b73abc2c408dde3d363a80f0bd112155b88;hp=0a6732c935e687213c53f013d925f35083f8c592 Sort list of allowed methods. RT#81825 --- diff --git a/Changes b/Changes index 2b230e2..23717ea 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ + Sort list of allowed methods. RT#81825 + Mon 2 Jul 2012 20:13:00 BST - Release 1.05 Bugfix get_allowed_methods list: * include HEAD diff --git a/lib/Catalyst/Action/REST.pm b/lib/Catalyst/Action/REST.pm index 6802f16..cad0fe8 100644 --- a/lib/Catalyst/Action/REST.pm +++ b/lib/Catalyst/Action/REST.pm @@ -158,7 +158,7 @@ sub get_allowed_methods { }; $methods->{'HEAD'} = 1 if $methods->{'GET'}; delete $methods->{'not_implemented'}; - return keys %$methods; + return sort keys %$methods; }; sub _return_options {