diff options
author | Chisel <chisel@chizography.net> | 2014-01-08 14:51:12 +0000 |
---|---|---|
committer | Chisel <chisel@chizography.net> | 2014-01-08 14:51:12 +0000 |
commit | f42d65317e8aefc4436c320237468acdc76cbc7c (patch) | |
tree | 004dd2a934f32c7649580a422f45fe7d6c6159f4 | |
parent | Merge pull request #26 from oalders/master (diff) | |
download | net-http-spore-f42d65317e8aefc4436c320237468acdc76cbc7c.tar.gz |
Wrap enum values in arrayref (franckcuny/net-http-spore#30)
-rw-r--r-- | lib/Net/HTTP/Spore/Meta/Types.pm | 2 |
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, |