mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Merge branch 'MDL-76370-publicpaths-proxying-MOODLE_401_STABLE' of https://github.com/jaydn/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
d69579a060
@ -3215,7 +3215,14 @@ class curl {
|
||||
$this->proxy_type = CURLPROXY_SOCKS5;
|
||||
} else {
|
||||
$this->proxy_type = CURLPROXY_HTTP;
|
||||
$this->setopt(array('httpproxytunnel'=>false));
|
||||
$this->setopt([
|
||||
'httpproxytunnel' => false,
|
||||
]);
|
||||
if (defined('CURLOPT_SUPPRESS_CONNECT_HEADERS')) {
|
||||
$this->setopt([
|
||||
'suppress_connect_headers' => true,
|
||||
]);
|
||||
}
|
||||
}
|
||||
$this->setopt(array('proxytype'=>$this->proxy_type));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user