summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorChristian Schneider2022-08-15 14:05:20 +0200
committerChristian Schneider2022-08-15 14:05:20 +0200
commit8d3156554302768a54c0b91da59e50ae330bcc6e (patch)
tree254e0598c3f4b4fb84e119019c43c165da29b000 /it_url.class
parent184f9e06812ed33556366a1db34611dd7aba85e5 (diff)
downloaditools-8d3156554302768a54c0b91da59e50ae330bcc6e.tar.gz
itools-8d3156554302768a54c0b91da59e50ae330bcc6e.tar.bz2
itools-8d3156554302768a54c0b91da59e50ae330bcc6e.zip
Use old syntax
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index d718201..7122161 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'], fn($c, $v) => $c | $protocols[$v], 0),
+ CURLOPT_PROTOCOLS => array_reduce($p['protocols'], function($c, $v) use($protocols) { return $c | $protocols[$v]; }, 0),
CURLOPT_CAPATH => '/etc/ssl/certs/',
CURLOPT_SSL_VERIFYPEER => !$p['allow_insecure_ssl'],