From: Tobias Date: Fri, 28 Oct 2011 23:02:30 +0000 (+0000) Subject: Disable proxy for local URLs instead of using a local proxy (which might not always... X-Git-Tag: 1.31.0-rc.0~26837 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=596a9e77e87e94b8022c06c3ed0f8cb2279d8a41;p=lhc%2Fweb%2Fwiklou.git Disable proxy for local URLs instead of using a local proxy (which might not always exist). In r61357 a comment "Not sure this makes any sense." was removed. Indeed, that comment seems to have been right :) --- diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index d24957142e..47dc682574 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -278,7 +278,7 @@ class MWHttpRequest { } if ( Http::isLocalURL( $this->url ) ) { - $this->proxy = 'http://localhost:80/'; + $this->proxy = ''; } elseif ( $wgHTTPProxy ) { $this->proxy = $wgHTTPProxy ; } elseif ( getenv( "http_proxy" ) ) {