Skip to content

Commit

Permalink
fixed examples in Mojo::Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 2, 2013
1 parent 0da1768 commit ee41b6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojo/Headers.pm
Expand Up @@ -240,8 +240,8 @@ Shortcut for the C<Accept-Ranges> header.
Add one or more header values with one or more lines.
# "Vary: Accept\x0d\x0a"
# "Vary: Accept-Encoding\x0d\x0a\x0d\x0a"
# "Vary: Accept"
# "Vary: Accept-Encoding"
$headers->vary('Accept')->add(Vary => 'Accept-Encoding')->to_string;
=head2 allow
Expand All @@ -257,10 +257,10 @@ Shortcut for the C<Allow> header.
Append value to header and flatten it if necessary.
# "Vary: Accept\x0d\x0a\x0d\x0a"
# "Vary: Accept"
$headers->append(Vary => 'Accept')->to_string;
# "Vary: Accept, Accept-Encoding\x0d\x0a\x0d\x0a"
# "Vary: Accept, Accept-Encoding"
$headers->vary('Accept')->append(Vary => 'Accept-Encoding')->to_string;
=head2 authorization
Expand Down

0 comments on commit ee41b6b

Please sign in to comment.