diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-30 11:45:52 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-30 11:45:52 +0000 |
commit | 51a00ea638d1a7bb5cb1ad4fbc9f673b8ce9e2e6 (patch) | |
tree | 2dbb024b4c29d4eacd640e4fb36807ef319d4c46 | |
parent | 929fe23e52d55a7be9f5c6f733482488e1267be8 (diff) | |
download | ruby-51a00ea638d1a7bb5cb1ad4fbc9f673b8ce9e2e6.tar.gz |
* lib/webrick/httpstatus.rb: Added HTTP 451 Status Code.
[fix GH-1167] Patch by @MuhammetDilmac
https://tools.ietf.org/html/draft-tbray-http-legally-restricted-status-00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/webrick/httpstatus.rb | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Wed Dec 30 20:45:45 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org> + + * lib/webrick/httpstatus.rb: Added HTTP 451 Status Code. + [fix GH-1167] Patch by @MuhammetDilmac + https://tools.ietf.org/html/draft-tbray-http-legally-restricted-status-00 + Wed Dec 30 20:25:52 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org> * doc/syntax/calling_methods.rdoc: fix old operator for safe navigation diff --git a/lib/webrick/httpstatus.rb b/lib/webrick/httpstatus.rb index 8664da26d0..ded5aa2e60 100644 --- a/lib/webrick/httpstatus.rb +++ b/lib/webrick/httpstatus.rb @@ -99,6 +99,7 @@ module WEBrick 428 => 'Precondition Required', 429 => 'Too Many Requests', 431 => 'Request Header Fields Too Large', + 451 => 'Unavailable For Legal Reasons', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', |