Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed redirect detection bug when using wget

  • Loading branch information...
commit 93b0a69516aee0c5ddbac7de01f39e0ea839d560 1 parent 13d6dcd
Tatsuhiko Miyagawa miyagawa authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  cpanm
2  cpanm
@@ -843,7 +843,7 @@ sub init_tools {
843 843 *redirect = sub {
844 844 my $uri = shift;
845 845 my $out = `$wget --max-redirect=0 $uri 2>&1`;
846   - if ($out =~ /^Location: (\S+)/) {
  846 + if ($out =~ /^Location: (\S+)/m) {
847 847 return $1;
848 848 }
849 849 return;

0 comments on commit 93b0a69

Please sign in to comment.
Something went wrong with that request. Please try again.