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;
2
2
use warnings;
3
3
4
4
use Test::More;
5
- plan tests => 59 ;
5
+ plan tests => 61 ;
6
6
7
7
use HTTP::Request::Common;
8
8
@@ -40,6 +40,10 @@ $r = PUT "http://www.sn.no",
40
40
{ foo => " bar" };
41
41
is($r -> content, " foo=bar" );
42
42
43
+ $r = PATCH " http://www.sn.no" ,
44
+ { foo => " bar" };
45
+ is($r -> content, " foo=bar" );
46
+
43
47
# --- Test POST requests ---
44
48
45
49
$r = POST " http://www.sn.no" , [foo => ' bar;baz' ,
@@ -233,3 +237,9 @@ $r = HTTP::Request::Common::PUT 'http://www.example.com',
233
237
' Content' => ' foobarbaz' ,
234
238
' Content-Length' => 12; # a slight lie
235
239
is($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