diff options
author | Andreas Marienborg <andreas.marienborg@gmail.com> | 2012-02-06 16:30:01 +0100 |
---|---|---|
committer | Andreas Marienborg <andreas.marienborg@gmail.com> | 2012-02-06 16:30:01 +0100 |
commit | 1c10f35f99c10f6f2e04b8826234e2585f6d9c22 (patch) | |
tree | c6f63ca1ee9d43652cfeb94a6afcc7237a583f56 /lib | |
parent | Support PATCH method (that github uses) (diff) | |
download | net-http-spore-1c10f35f99c10f6f2e04b8826234e2585f6d9c22.tar.gz |
Fix an error string, add a crude test
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Net/HTTP/Spore/Meta/Method.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/HTTP/Spore/Meta/Method.pm b/lib/Net/HTTP/Spore/Meta/Method.pm index f3d440f..9f95c48 100644 --- a/lib/Net/HTTP/Spore/Meta/Method.pm +++ b/lib/Net/HTTP/Spore/Meta/Method.pm @@ -147,7 +147,7 @@ sub wrap { && ( $method->method !~ /^(?:POST|PUT|PATCH)$/i ) ) { die Net::HTTP::Spore::Response->new( 599, [], - { error => "payload requires a PUT or POST method" }, + { error => "payload requires a PUT, PATCH or POST method" }, ); } |