Skip to content

Commit

Permalink
fixed Perl 5.10.1 compatibility (closes #381)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 11, 2012
1 parent 06b0dc5 commit 7baf988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
@@ -1,6 +1,7 @@

3.40 2012-09-11
- Improved tests.
- Fixed Perl 5.10.1 compatibility.

3.39 2012-09-10
- Improved Mojo::URL and Mojo::Parameters performance.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Content.pm
Expand Up @@ -39,7 +39,7 @@ sub generate_body_chunk {

# Drain
$self->emit(drain => $offset)
if !delete $self->{delay} && !length $self->{body_buffer};
if !delete $self->{delay} && !length($self->{body_buffer} // '');

# Get chunk
my $chunk = delete $self->{body_buffer} // '';
Expand Down

0 comments on commit 7baf988

Please sign in to comment.