summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2022-08-16 14:03:06 +0200
committerChristian Schneider2022-08-16 14:03:06 +0200
commitda836732e343cc9e093939fdf2215b10e21c0966 (patch)
treeedc593ea3c33e6e67f7c3a28ef15a7353a6b7222
parent8d3156554302768a54c0b91da59e50ae330bcc6e (diff)
downloaditools-da836732e343cc9e093939fdf2215b10e21c0966.tar.gz
itools-da836732e343cc9e093939fdf2215b10e21c0966.tar.bz2
itools-da836732e343cc9e093939fdf2215b10e21c0966.zip
Revert "Use old syntax"
This reverts commit 8d3156554302768a54c0b91da59e50ae330bcc6e.
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 7122161..d718201 100644
--- a/it_url.class
+++ b/it_url.class
@@ -265,7 +265,7 @@ static function curl_opts($p=array())
CURLOPT_CUSTOMREQUEST => $p['method'] ?: null,
CURLOPT_NOBODY => $p['method'] == 'HEAD',
CURLOPT_SAFE_UPLOAD => true, # disable special meaning of @value in POST forms (security)
- CURLOPT_PROTOCOLS => array_reduce($p['protocols'], function($c, $v) use($protocols) { return $c | $protocols[$v]; }, 0),
+ CURLOPT_PROTOCOLS => array_reduce($p['protocols'], fn($c, $v) => $c | $protocols[$v], 0),
CURLOPT_CAPATH => '/etc/ssl/certs/',
CURLOPT_SSL_VERIFYPEER => !$p['allow_insecure_ssl'],