Make curl follow redirects
authorMichael G. Schwern <schwern@pobox.com>
Sun, 21 Aug 2005 00:16:26 +0000 (17:16 -0700)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 22 Aug 2005 13:24:09 +0000 (13:24 +0000)
Message-ID: <20050821071625.GA29394@windhund.schwern.org>

p4raw-id: //depot/perl@25317

lib/CPAN.pm

index 095b533..fa83398 100644 (file)
@@ -2651,8 +2651,10 @@ sub hosthard {
            $src_switch = " -source";
          } elsif ($f eq "ncftp"){
            $src_switch = " -c";
-          } elsif ($f eq "wget"){
-            $src_switch = " -O -";
+         } elsif ($f eq "wget"){
+           $src_switch = " -O -";
+         } elsif ($f eq 'curl'){
+           $src_switch = ' -L';
          }
 
          my($chdir) = "";