Make curl follow redirects
Michael G. Schwern [Sun, 21 Aug 2005 00:16:26 +0000 (17:16 -0700)]
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) = "";