Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
comment tweaks
  • Loading branch information
kraih committed Jan 29, 2013
1 parent 9d2d8fb commit 3de23f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

3.84 2013-01-29
3.84 2013-01-30
- Fixed small file descriptor leak in Mojo::UserAgent.

3.83 2013-01-27
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious/Sessions.pm
Expand Up @@ -30,10 +30,12 @@ sub load {
sub store {
my ($self, $c) = @_;

# Make sure session was active
my $stash = $c->stash;
return unless my $session = $stash->{'mojo.session'};
return unless keys %$session || $stash->{'mojo.active_session'};

# Don't reset flash for static files
my $old = delete $session->{flash};
@{$session->{new_flash}}{keys %$old} = values %$old
if $stash->{'mojo.static'};
Expand Down
1 change: 0 additions & 1 deletion lib/Mojolicious/Static.pm
Expand Up @@ -89,7 +89,6 @@ sub serve_asset {
->content_range("bytes $start-$end/$size");
}

# Serve asset
return $res->content->asset($asset->start_range($start)->end_range($end));
}

Expand Down

0 comments on commit 3de23f6

Please sign in to comment.