summary refs log tree commit diff
diff options
context:
space:
mode:
authorAsh Berlin <ash_github@firemirror.com>2014-02-01 02:31:33 -0800
committerAsh Berlin <ash_github@firemirror.com>2014-02-01 02:31:33 -0800
commit515004673805175df14883325286e177de8d0088 (patch)
tree5add2ffa1c7327ed725a9e4d63a7473f57a0b2d8
parentMerge pull request #24 from hakamadare/typo_fix (diff)
parentWrap enum values in arrayref (franckcuny/net-http-spore#30) (diff)
downloadnet-http-spore-515004673805175df14883325286e177de8d0088.tar.gz
Merge pull request #35 from chiselwright/enum_arrayref
Wrap enum values in arrayref (franckcuny/net-http-spore#30)
-rw-r--r--lib/Net/HTTP/Spore/Meta/Types.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/HTTP/Spore/Meta/Types.pm b/lib/Net/HTTP/Spore/Meta/Types.pm
index 3089da3..a8b4643 100644
--- a/lib/Net/HTTP/Spore/Meta/Types.pm
+++ b/lib/Net/HTTP/Spore/Meta/Types.pm
@@ -12,7 +12,7 @@ subtype UriPath,
     where { $_ =~ m!^/! },
     message {"path must start with /"};
 
-enum HTTPMethod, qw(OPTIONS HEAD GET POST PUT DELETE TRACE PATCH);
+enum HTTPMethod, [qw(OPTIONS HEAD GET POST PUT DELETE TRACE PATCH)];
 
 subtype Boolean,
     as Int,