@@ -2,7 +2,6 @@ use strict;
2
2
use warnings;
3
3
4
4
use Test::More;
5
- plan tests => 71;
6
5
7
6
use File::Spec;
8
7
use File::Temp qw( tempfile) ;
@@ -86,9 +85,9 @@ note $r->as_string, "\n";
86
85
87
86
is($r -> method, " POST" );
88
87
is($r -> content_type, " application/x-www-form-urlencoded" );
89
- is($r -> content_length, 83 );
90
- is($r -> header(" bar" ), " foo" );
91
- is($r -> content, " foo=bar%3Bbaz&baz=a&baz=b&baz=c&foo=zoo%3D%26&space+=+%2B+&nl=a%0D% 0Ab%0D%0Ac%0D%0A " );
88
+ is($r -> content_length, 77, ' content_length ' );
89
+ is($r -> header(" bar" ), " foo" , ' bar is foo ' );
90
+ is($r -> content, ' foo=bar%3Bbaz&baz=a&baz=b&baz=c&foo=zoo%3D%26&space+=+%2B+&nl=a%0Ab%0D%0Ac%0A ' );
92
91
93
92
$r = POST " http://example.com" ;
94
93
is($r -> content_length, 0);
@@ -184,7 +183,7 @@ like($r->content, qr/bar=24/);
184
183
is($r -> content_type, " application/x-www-form-urlencoded" );
185
184
is($r -> content_length, 13);
186
185
187
-
186
+
188
187
#
189
188
# POST for File upload
190
189
#
@@ -273,3 +272,5 @@ $r = HTTP::Request::Common::PATCH 'http://www.example.com',
273
272
' Content' => ' foobarbaz' ,
274
273
' Content-Length' => 12; # a slight lie
275
274
is($r -> header(' Content-Length' ), 9);
275
+
276
+ done_testing();
0 commit comments