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 :)

This commit is contained in:
Tobias 2011-10-28 23:02:30 +00:00
parent 5249a9a79f
commit 596a9e77e8

View file

@ -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" ) ) {