Sort list of allowed methods. RT#81825
Dagfinn Ilmari Mannsåker [Sun, 9 Dec 2012 19:25:50 +0000 (19:25 +0000)]
Changes
lib/Catalyst/Action/REST.pm

diff --git a/Changes b/Changes
index 2b230e2..23717ea 100644 (file)
--- 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
index 6802f16..cad0fe8 100644 (file)
@@ -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 {