summaryrefslogtreecommitdiff
path: root/lib/net/http/responses.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-08 17:11:46 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-08 17:11:46 +0000
commit91539d71d8bec80d5e7bbb2b7192ca950eb0c33a ()
treec1725e8ecda67bc69353313cbdb55a121711af94 /lib/net/http/responses.rb
parente0097ea89f9d5323e37858188b01c5aa22c006e3 (diff)
* lib/net/http/responses.rb:
Add `HTTPIMUsed`, as it is also supported by rack/rails. RFC - http://tools.ietf.org/html/rfc3229 by Vipul A M <[email protected]> https://.com/ruby/ruby/pull/447 fix GH-447 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/net/http/responses.rb5
1 files changed, 4 insertions, 1 deletions
@@ -57,7 +57,9 @@ class Net::HTTPMultiStatus < Net::HTTPSuccess # 207 - RFC 4918
HAS_BODY = true
end
# 208 Already Reported - RFC 5842; experimental
-# 226 IM Used - RFC 3229; no famous implementation known
class Net::HTTPMultipleChoices < Net::HTTPRedirection # 300
HAS_BODY = true
@@ -218,6 +220,7 @@ class Net::HTTPResponse
'205' => Net::HTTPResetContent,
'206' => Net::HTTPPartialContent,
'207' => Net::HTTPMultiStatus,
'300' => Net::HTTPMultipleChoices,
'301' => Net::HTTPMovedPermanently,