summaryrefslogtreecommitdiffstats
path: root/perl-install/http.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-12-10 18:15:10 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-12-10 18:15:10 +0000
commit6ff8022a9fcd1a160bb1631f06b467a105620b41 (patch)
treeeb20fca9b3345895d404e99479f8dc16c8c07316 /perl-install/http.pm
parente45c1bc02e56d14d98827eb8ebb8696f0e7a6517 (diff)
downloaddrakx-6ff8022a9fcd1a160bb1631f06b467a105620b41.tar
drakx-6ff8022a9fcd1a160bb1631f06b467a105620b41.tar.gz
drakx-6ff8022a9fcd1a160bb1631f06b467a105620b41.tar.bz2
drakx-6ff8022a9fcd1a160bb1631f06b467a105620b41.tar.xz
drakx-6ff8022a9fcd1a160bb1631f06b467a105620b41.zip
enable http:// in auto_install file location
Diffstat (limited to 'perl-install/http.pm')
-rw-r--r--perl-install/http.pm6
1 files changed, 3 insertions, 3 deletions
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',