Skip to content

Commit

Permalink
fix proxy detection in get command
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 24, 2015
1 parent 488576e commit 4243b13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,9 +1,10 @@

5.74 2015-01-24
5.74 2015-01-25
- Improved parser errors to be more consistent with connection errors in
Mojo::Message::Request and Mojo::Message::Response.
- Fixed bug where placeholder default values would not always have
precedence.
- Fixed proxy detection in get command.

5.73 2015-01-24
- Deprecated Mojolicious::Routes::Route::bridge in favor of
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/get.pm
Expand Up @@ -33,7 +33,7 @@ sub run {
# Detect proxy for absolute URLs
my $ua = $self->app->ua->ioloop(Mojo::IOLoop->singleton);
$ua->server->ioloop(Mojo::IOLoop->singleton);
$ua->proxy->detect unless $url !~ m!^/!;
$ua->proxy->detect unless $url =~ m!^/!;
$ua->max_redirects(10) if $redirect;

my $buffer = '';
Expand Down

0 comments on commit 4243b13

Please sign in to comment.