MDL-38168 Filelib: Curl class does not honour proxybypass option

This commit is contained in:
sam marshall
2013-02-22 14:15:01 +00:00
parent f29e62cb6c
commit bedd74bc22
+6
View File
@@ -3078,6 +3078,12 @@ class curl {
}
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){
echo '<h1>Options</h1>';
var_dump($this->options);