1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 00:24:13 +01:00

Refactor.

This commit is contained in:
Jean Paul Galea 2015-07-22 19:41:25 +00:00
parent 4c2d4414a0
commit 9dfb9b9302

View File

@ -132,13 +132,8 @@ function curl_settings($logger, $ident, $handle, $url, $timeout, $curlopts)
}
foreach ($curlopts as $key => $val)
{
if (curl_setopt($handle, $key, $val) === FALSE)
{
$logger->log(LOG_WARN, $ident . ' failed to set ' . curl_opt_name($key));
continue;
}
}
$logger->log(LOG_WARN, "$ident failed to set " . curl_opt_name($key));
}
// returns the string name of a curl constant,