Skip to content

Commit a003b76

Browse files
authored
Merge pull request chobits#57 from chobits/for_pull_request
fixed test case: check HTTP version 1.0/1.1 both
2 parents 603aba3 + 6747edc commit a003b76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/http_proxy_connect.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ EOF
265265
return '' if $extra{aborted};
266266
my $n = $s->sysread($reply, 65536);
267267
return unless $n;
268-
if ($reply !~ /HTTP\/1\.0 200 Connection Established\r\nProxy-agent: .+\r\n\r\n/) {
268+
if ($reply !~ /HTTP\/1\.[01] 200 Connection Established\r\nProxy-agent: .+\r\n\r\n/) {
269269
return $reply;
270270
}
271271
log_out($request);

0 commit comments

Comments
 (0)