@@ -2,7 +2,6 @@ use strict;
22use warnings;
33
44use Test::More;
5- plan tests => 71;
65
76use File::Spec;
87use File::Temp qw( tempfile) ;
@@ -86,9 +85,9 @@ note $r->as_string, "\n";
8685
8786is($r -> method, " POST" );
8887is($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 ' );
9291
9392$r = POST " http://example.com" ;
9493is($r -> content_length, 0);
@@ -184,7 +183,7 @@ like($r->content, qr/bar=24/);
184183is($r -> content_type, " application/x-www-form-urlencoded" );
185184is($r -> content_length, 13);
186185
187-
186+
188187#
189188# POST for File upload
190189#
@@ -273,3 +272,5 @@ $r = HTTP::Request::Common::PATCH 'http://www.example.com',
273272 ' Content' => ' foobarbaz' ,
274273 ' Content-Length' => 12; # a slight lie
275274is($r -> header(' Content-Length' ), 9);
275+
276+ done_testing();
0 commit comments