Permalink
Browse files

Fixed redirect detection bug when using wget

  • Loading branch information...
1 parent 13d6dcd commit 93b0a69516aee0c5ddbac7de01f39e0ea839d560 @miyagawa miyagawa committed Feb 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cpanm
View
@@ -843,7 +843,7 @@ sub init_tools {
*redirect = sub {
my $uri = shift;
my $out = `$wget --max-redirect=0 $uri 2>&1`;
- if ($out =~ /^Location: (\S+)/) {
+ if ($out =~ /^Location: (\S+)/m) {
return $1;
}
return;

0 comments on commit 93b0a69

Please sign in to comment.