Skip to content

Commit

Permalink
tweaked header examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 29, 2012
1 parent d84e29f commit a0f8437
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Transaction/HTTP.pm
Expand Up @@ -273,7 +273,7 @@ Emitted when a request is ready and needs to be handled.
$tx->on(request => sub {
my $tx = shift;
$tx->res->headers->header('X-Bender', 'Bite my shiny metal ass!');
$tx->res->headers->header('X-Bender' => 'Bite my shiny metal ass!');
});
=head2 C<upgrade>
Expand All @@ -288,7 +288,7 @@ object.
$tx->on(upgrade => sub {
my ($tx, $ws) = @_;
$ws->res->headers->header('X-Bender', 'Bite my shiny metal ass!');
$ws->res->headers->header('X-Bender' => 'Bite my shiny metal ass!');
});
=head1 ATTRIBUTES
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/UserAgent.pm
Expand Up @@ -640,7 +640,7 @@ automatically prepared proxy C<CONNECT> requests and followed redirects.
$ua->on(start => sub {
my ($ua, $tx) = @_;
$tx->req->headers->header('X-Bender', 'Bite my shiny metal ass!');
$tx->req->headers->header('X-Bender' => 'Bite my shiny metal ass!');
});
=head1 ATTRIBUTES
Expand Down

0 comments on commit a0f8437

Please sign in to comment.