From 1c10f35f99c10f6f2e04b8826234e2585f6d9c22 Mon Sep 17 00:00:00 2001 From: Andreas Marienborg Date: Mon, 6 Feb 2012 16:30:01 +0100 Subject: Fix an error string, add a crude test --- lib/Net/HTTP/Spore/Meta/Method.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Net/HTTP') 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" }, ); } -- cgit v1.2.3