File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use strict;
22use warnings;
33
44use Test::More;
5- plan tests => 59 ;
5+ plan tests => 61 ;
66
77use HTTP::Request::Common;
88
@@ -40,6 +40,10 @@ $r = PUT "http://www.sn.no",
4040 { foo => " bar" };
4141is($r -> content, " foo=bar" );
4242
43+ $r = PATCH " http://www.sn.no" ,
44+ { foo => " bar" };
45+ is($r -> content, " foo=bar" );
46+
4347# --- Test POST requests ---
4448
4549$r = POST " http://www.sn.no" , [foo => ' bar;baz' ,
@@ -233,3 +237,9 @@ $r = HTTP::Request::Common::PUT 'http://www.example.com',
233237 ' Content' => ' foobarbaz' ,
234238 ' Content-Length' => 12; # a slight lie
235239is($r -> header(' Content-Length' ), 9);
240+
241+ $r = HTTP::Request::Common::PATCH ' http://www.example.com' ,
242+ ' Content-Type' => ' application/octet-steam' ,
243+ ' Content' => ' foobarbaz' ,
244+ ' Content-Length' => 12; # a slight lie
245+ is($r -> header(' Content-Length' ), 9);
You can’t perform that action at this time.
0 commit comments