Skip to content

Commit

Permalink
Add the status() method that was removed in commit 6533277 (closes #245)
Browse files Browse the repository at this point in the history
  • Loading branch information
amenonsen committed Dec 15, 2011
1 parent 348b18f commit 852f081
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Mojo/Headers.pm
Expand Up @@ -15,6 +15,7 @@ my @HEADERS = (
qw/Sec-WebSocket-Key Sec-WebSocket-Origin Sec-WebSocket-Protocol/,
qw/Sec-WebSocket-Version Server Set-Cookie Set-Cookie2 Trailer/,
qw/Transfer-Encoding Upgrade User-Agent WWW-Authenticate X-Forwarded-For/,
qw/Status/,
);
{
no strict 'refs';
Expand Down
4 changes: 3 additions & 1 deletion t/mojo/headers.t
@@ -1,7 +1,7 @@
use Mojo::Base -strict;

# "Remember, you can always find East by staring directly at the sun."
use Test::More tests => 48;
use Test::More tests => 49;

# "So, have a merry Christmas, a happy Hanukkah, a kwaazy Kwanza,
# a tip-top Tet, and a solemn, dignified, Ramadan.
Expand Down Expand Up @@ -37,6 +37,8 @@ is $headers->expires, 'Thu, 01 Dec 1994 16:00:00 GMT', 'right value';
is $headers->cache_control, 'public', 'right value';
$headers->etag('abc321');
is $headers->etag, 'abc321', 'right value';
$headers->status('444');
is $headers->status, 444, 'right status';

# Clone
$headers = Mojo::Headers->new;
Expand Down

0 comments on commit 852f081

Please sign in to comment.