Skip to content

Commit

Permalink
add support for 103 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 31, 2017
1 parent e6317c0 commit 6ade763
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

7.51 2017-11-01
- Added support for new HTTP status code.

7.50 2017-10-30
- Deprecated error and finish events in Mojo::IOLoop::Delay. Since there is no
Expand Down
1 change: 1 addition & 0 deletions lib/Mojo/Message/Response.pm
Expand Up @@ -12,6 +12,7 @@ my %MESSAGES = (
100 => 'Continue',
101 => 'Switching Protocols',
102 => 'Processing', # RFC 2518 (WebDAV)
103 => 'Early Hints', # RFC XXXX
200 => 'OK',
201 => 'Created',
202 => 'Accepted',
Expand Down
1 change: 1 addition & 0 deletions t/mojo/response.t
Expand Up @@ -18,6 +18,7 @@ $res = Mojo::Message::Response->new;
is $res->code(100)->default_message, 'Continue', 'right message';
is $res->code(101)->default_message, 'Switching Protocols', 'right message';
is $res->code(102)->default_message, 'Processing', 'right message';
is $res->code(103)->default_message, 'Early Hints', 'right message';
is $res->code(200)->default_message, 'OK', 'right message';
is $res->code(201)->default_message, 'Created', 'right message';
is $res->code(202)->default_message, 'Accepted', 'right message';
Expand Down

0 comments on commit 6ade763

Please sign in to comment.