Skip to content

Commit

Permalink
better form example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 5, 2012
1 parent 85c4a64 commit fbf2ddb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
This file documents the revision history for Perl extension Mojolicious.

2.77 2012-04-06
- Improved documentation.

2.76 2012-04-05
- Improved documentation.

Expand Down
5 changes: 2 additions & 3 deletions lib/Mojo/UserAgent/Transactor.pm
Expand Up @@ -279,9 +279,8 @@ data.
# Inspect generated request
say $t->form('mojolicio.us' => {a => [1, 2, 3]})->req->to_string;
# Submit form and stream response
my $tx = $t->form('http://kraih.com/foo' => {a => 'b'});
$tx->res->body(sub { say $_[1] });
# Streaming multipart file upload
my $tx = $t->form('mojolicio.us' => {fun => {file => '/etc/passwd'}});
$ua->start($tx);
While the "multipart/form-data" content type will be automatically used
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -33,7 +33,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Leaf Fluttering In Wind';
our $VERSION = '2.76';
our $VERSION = '2.77';

# "These old doomsday devices are dangerously unstable.
# I'll rest easier not knowing where they are."
Expand Down

0 comments on commit fbf2ddb

Please sign in to comment.