Skip to content

Commit 91ebdf8

Browse files
committed
fix incorrect regex used for testing the response line (amends tokuhirom#80)
1 parent b70d5f0 commit 91ebdf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Furl/HTTP.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ sub connect_ssl_over_proxy {
681681
return (undef, "Cannot read proxy response: " . _strerror_or_timeout());
682682
} elsif ( $read == 0 ) { # eof
683683
return (undef, "Unexpected EOF while reading proxy response");
684-
} elsif ( $buf !~ /^HTTP\/1.[01] 200 .+\015\012/ ) {
684+
} elsif ( $buf !~ /^HTTP\/1\.[0-9] 200 .+\015\012/ ) {
685685
return (undef, "Invalid HTTP Response via proxy");
686686
}
687687

0 commit comments

Comments
 (0)