Skip to content

Commit

Permalink
better form generator example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 3, 2014
1 parent 438ec4a commit f78355d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/UserAgent/Transactor.pm
Expand Up @@ -384,9 +384,9 @@ requests, with support for content generators.
my $tx = $t->tx(
POST => 'http://example.com' => form => {a => 'b', c => 'd'});
# PUT request with UTF-8 encoded form values
# PUT request with Shift_JIS encoded form values
my $tx = $t->tx(
PUT => 'http://example.com' => form => {a => 'b'} => charset => 'UTF-8');
PUT => 'example.com' => form => {a => 'b'} => charset => 'Shift_JIS');
# POST request with form values sharing the same name
my $tx = $t->tx(POST => 'http://example.com' => form => {a => [qw(b c d)]});
Expand Down

0 comments on commit f78355d

Please sign in to comment.