File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,15 @@ SKIP: for my $pass ( 1 .. 2 ) {
51
51
Accept => ' */*'
52
52
);
53
53
54
- my ( $code , $mess , %h ) = $s -> read_response_headers;
54
+ my ( $code , $mess , %headers ) = $s -> read_response_headers;
55
+
56
+ my %h = map { lc ($_ ) => $headers {$_ } } keys %headers ;
57
+
55
58
print " # ----------------------------\n " ;
56
59
print " # $code $mess \n " ;
57
60
for ( sort keys %h ) {
58
61
print " # $_ : $h {$_ }\n " ;
59
- if (/ ^Connection $ /i && $h {$_ } =~ / ^keep-alive$ / ) {
62
+ if (/ ^connection $ /i && $h {$_ } =~ / ^keep-alive$ / ) {
60
63
$connection_is_kept_alive = 1;
61
64
}
62
65
}
@@ -72,7 +75,7 @@ SKIP: for my $pass ( 1 .. 2 ) {
72
75
$buf =~ s /\r // g ;
73
76
74
77
ok( $code == 302 || $code == 200, ' success' );
75
- like( $h {' Content-Type ' }, qr { text/html} );
78
+ like( $h {' content-type ' }, qr { text/html} );
76
79
like( $buf , qr { </html>} i );
77
80
}
78
81
You can’t perform that action at this time.
0 commit comments