From 6ff8022a9fcd1a160bb1631f06b467a105620b41 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 10 Dec 2001 18:15:10 +0000 Subject: enable http:// in auto_install file location --- perl-install/http.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/http.pm') diff --git a/perl-install/http.pm b/perl-install/http.pm index d04f90435..057764a27 100644 --- a/perl-install/http.pm +++ b/perl-install/http.pm @@ -9,12 +9,12 @@ my $sock; sub getFile { local($^W) = 0; - my ($host, $port, $path) = $ENV{URLPREFIX} =~ m,^http://([^/:]+)(?::(\d+))?(/\S*)?$,; + my ($url) = @_; + my ($host, $port, $path) = $url =~ m,^http://([^/:]+)(?::(\d+))?(/\S*)?$,; $host = network::resolv($host); - $path .= "/$_[0]"; $sock->close if $sock; - $_[0] eq 'XXX' and return; #- force closing connection. + $url =~ m|/XXX$| and return; #- force closing connection. $sock = IO::Socket::INET->new(PeerAddr => $host, PeerPort => $port || 80, Proto => 'tcp', -- cgit v1.2.1