mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-38168-m24' of git://github.com/sammarshallou/moodle into MOODLE_24_STABLE
This commit is contained in:
commit
4ea25c227c
1 changed files with 6 additions and 0 deletions
|
@ -3057,6 +3057,12 @@ class curl {
|
||||||
}
|
}
|
||||||
curl_setopt($curl, CURLOPT_HTTPHEADER, $this->header);
|
curl_setopt($curl, CURLOPT_HTTPHEADER, $this->header);
|
||||||
|
|
||||||
|
// Bypass proxy (for this request only) if required.
|
||||||
|
if (!empty($this->options['CURLOPT_URL']) &&
|
||||||
|
is_proxybypass($this->options['CURLOPT_URL'])) {
|
||||||
|
unset($this->options['CURLOPT_PROXY']);
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->debug){
|
if ($this->debug){
|
||||||
echo '<h1>Options</h1>';
|
echo '<h1>Options</h1>';
|
||||||
var_dump($this->options);
|
var_dump($this->options);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue