mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-11-29 00:24:13 +01:00
Refactor.
This commit is contained in:
parent
4c2d4414a0
commit
9dfb9b9302
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user