Respect check-SSL setting

This commit is contained in:
Jamie Cameron
2017-05-16 12:25:24 -07:00
parent 7face4b2be
commit 6243d45f3f

View File

@@ -76,7 +76,8 @@ else {
# Connect to the server
my $con = &make_http_connection($s->{'ip'} || $s->{'host'}, $s->{'port'},
$s->{'ssl'}, $meth, $path, undef, undef,
{ 'host' => $s->{'host'} });
{ 'host' => $s->{'host'},
'nocheckhost' => !$s->{'checkssl'} });
&error($con) if (!ref($con));
# Send request headers