mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-27 06:54:16 +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)
|
foreach ($curlopts as $key => $val)
|
||||||
{
|
|
||||||
if (curl_setopt($handle, $key, $val) === FALSE)
|
if (curl_setopt($handle, $key, $val) === FALSE)
|
||||||
{
|
$logger->log(LOG_WARN, "$ident failed to set " . curl_opt_name($key));
|
||||||
$logger->log(LOG_WARN, $ident . ' failed to set ' . curl_opt_name($key));
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns the string name of a curl constant,
|
// returns the string name of a curl constant,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user