We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 25a4494 + ffc0b0b commit d6fea24Copy full SHA for d6fea24
2 files changed
t/headers.t
@@ -304,9 +304,10 @@ like($@, qr/^Illegal field name '' at \Q$file\E line $line/);
304
305
#---- old tests below -----
306
307
-$h = new HTTP::Headers
+$h = HTTP::Headers->new(
308
mime_version => "1.0",
309
- content_type => "text/html";
+ content_type => "text/html"
310
+);
311
$h->header(URI => "http://www.oslonett.no/");
312
313
is($h->header("MIME-Version"), "1.0");
t/response.t
@@ -16,7 +16,7 @@ my $time = time;
16
my $req = HTTP::Request->new(GET => 'http://www.sn.no');
17
$req->date($time - 30);
18
19
-my $r = new HTTP::Response 200, "OK";
+my $r = HTTP::Response->new(200, "OK");
20
$r->client_date($time - 20);
21
$r->date($time - 25);
22
$r->last_modified($time - 5000000);
0 commit comments