Skip to content

Commit

Permalink
small optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 21, 2013
1 parent fe8411d commit 33e6dfe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,4 +1,6 @@

4.04 2013-05-22

4.03 2013-05-21
- Fixed redirect support in get command.

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -41,7 +41,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.03';
our $VERSION = '4.04';

sub AUTOLOAD {
my $self = shift;
Expand Down
10 changes: 2 additions & 8 deletions lib/Mojolicious/Command/get.pm
Expand Up @@ -71,14 +71,8 @@ sub run {
weaken $tx;
$tx->res->content->on(
body => sub {

# Request
my $req = $tx->req;
warn $req->$_ for qw(build_start_line build_headers);

# Response
my $res = $tx->res;
warn $res->$_ for qw(build_start_line build_headers);
warn $tx->req->$_ for qw(build_start_line build_headers);
warn $tx->res->$_ for qw(build_start_line build_headers);
}
) if $verbose;

Expand Down

0 comments on commit 33e6dfe

Please sign in to comment.