Skip to content

Commit d92fd70

Browse files
committed
test PATCH req
1 parent 4b8e1e4 commit d92fd70

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

t/common-req.t

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use strict;
22
use warnings;
33

44
use Test::More;
5-
plan tests => 59;
5+
plan tests => 61;
66

77
use HTTP::Request::Common;
88

@@ -40,6 +40,10 @@ $r = PUT "http://www.sn.no",
4040
{ foo => "bar" };
4141
is($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
235239
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);

0 commit comments

Comments
 (0)