Skip to content

Commit

Permalink
fixed small relative URL detection bug in get command
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 31, 2012
1 parent 11819d7 commit 521f00d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.47 2012-01-30 00:00:00
2.47 2012-01-31 00:00:00
- Added EXPERIMENTAL drain event to Mojo::Content.
- Added EXPERIMENTAL drain event to Mojo::Transaction::WebSocket.
- Added EXPERIMENTAL support for RSV1-3 flags to
Expand All @@ -13,6 +13,7 @@ This file documents the revision history for Perl extension Mojolicious.
- Improved tests.
- Fixed small bug in Mojo::IOLoop::Stream that caused close events to
fail sometimes.
- Fixed small relative URL detection bug in get command.

2.46 2012-01-25 00:00:00
- Added EXPERIMENTAL request_timeout attribute to Mojo::UserAgent.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/get.pm
Expand Up @@ -74,7 +74,7 @@ sub run {
$ua->max_redirects(5) if $redirect;

# Absolute URL
if ($url =~ m#^\w+://#) { $ua->detect_proxy }
if ($url !~ m#/#) { $ua->detect_proxy }

# Application
else { $ua->app($ENV{MOJO_APP} || 'Mojo::HelloWorld') }
Expand Down

0 comments on commit 521f00d

Please sign in to comment.