Skip to content

Commit

Permalink
check error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Weisberg committed Jan 24, 2013
1 parent d47243f commit fb8fbff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions monbin/https
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ my $s = IO::Socket::SSL->new(
SSL_verify_mode => SSL_VERIFY_NONE,
);

die "error $addr\n" unless $s;
$s->print(join('', map{ "$_\r\n" }
"GET $file HTTP/1.0",
"Host: $host",
Expand Down

0 comments on commit fb8fbff

Please sign in to comment.