summary refs log tree commit diff
diff options
context:
space:
mode:
authorChisel <chisel@chizography.net>2014-01-08 14:51:12 +0000
committerChisel <chisel@chizography.net>2014-01-30 11:27:07 +0000
commit96d9039e4050f1545188879066045fe5a0fec97f (patch)
tree53ef36765597160c2729778fa7d602e820545343
parentMerge pull request #33 from chiselwright/class_load (diff)
downloadnet-http-spore-96d9039e4050f1545188879066045fe5a0fec97f.tar.gz
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,