]> git.mjollnir.org Git - moodle.git/commitdiff
lib: class curl does http proxy tunneling if http proxy set. Most
authorpoltawski <poltawski>
Mon, 1 Dec 2008 22:23:42 +0000 (22:23 +0000)
committerpoltawski <poltawski>
Mon, 1 Dec 2008 22:23:42 +0000 (22:23 +0000)
proxies do not permit this so I think its better to just use pure
pure http MDL-17482

lib/filelib.php

index 8ed92ff7de05a751a764995fe29043fcd949a7e5..0a6b0aa8b50867b6f2177718545c6ced9cae8daa 100644 (file)
@@ -1614,7 +1614,7 @@ class curl {
                     $this->proxy_type = CURLPROXY_SOCKS5;
                 } else {
                     $this->proxy_type = CURLPROXY_HTTP;
-                    $this->setopt(array('httpproxytunnel'=>true));
+                    $this->setopt(array('httpproxytunnel'=>false));
                 }
                 $this->setopt(array('proxytype'=>$this->proxy_type));
             }