Skip to content

Commit

Permalink
fixed small upgrade bug in Mojo::UserAgent::Transactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 10, 2013
1 parent 2f33548 commit c8498ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,4 +1,7 @@

3.77 2013-01-11
- Fixed small upgrade bug in Mojo::UserAgent::Transactor.

3.76 2013-01-10
- Added support for multiple uploads sharing the same name to
Mojo::UserAgent::Transactor.
Expand Down
4 changes: 3 additions & 1 deletion lib/Mojo/UserAgent/Transactor.pm
Expand Up @@ -194,7 +194,9 @@ sub _multipart {
}

# Memory
else { $part->asset->add_chunk(delete $value->{content}) }
elsif (defined(my $content = delete $value->{content})) {
$part->asset(Mojo::Asset::Memory->new->add_chunk($content));
}

# Filename and headers
$filename = delete $value->{filename} || $name;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -40,7 +40,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Rainbow';
our $VERSION = '3.76';
our $VERSION = '3.77';

sub AUTOLOAD {
my $self = shift;
Expand Down

0 comments on commit c8498ac

Please sign in to comment.