We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 341423f commit a462f3aCopy full SHA for a462f3a
t/response.t
@@ -5,7 +5,7 @@ use strict;
5
use warnings;
6
7
use Test::More;
8
-plan tests => 29;
+plan tests => 30;
9
10
use HTTP::Date;
11
use HTTP::Request;
@@ -84,7 +84,9 @@ is($freshness_lifetime, 10);
84
ok($r->fresh_until); # should return something
85
ok($r->fresh_until(heuristic_expiry => 0)); # should return something
86
87
-my $r2 = HTTP::Response->parse($r->as_string);
+my $r2 = HTTP::Response->parse($r->as_string( "\x0d\x0a"));
88
+is( $r2->message(), 'OK', 'message() returns as expected' );
89
+
90
my @h = $r2->header('Cache-Control');
91
is(@h, 2);
92
0 commit comments