diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-09 01:19:01 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-09 01:19:01 +0000 |
commit | ea67287ac14e1b7f2be1ef586ab9770f709a4f7b (patch) | |
tree | a0fd2488dacbe73963f3997042f4dee5b1cacfee /lib | |
parent | dc2eb0c653bf3ae308b960ba7f2222fb35c6bcfc (diff) | |
download | ruby-ea67287ac14e1b7f2be1ef586ab9770f709a4f7b.tar.gz |
* lib/net/http/responses.rb: Added 308 status to CODE_TO_OBJ list.
[fix GH-961] Patch by @billinghamj
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http/responses.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net/http/responses.rb b/lib/net/http/responses.rb index 1454a27a3e..284bfcfe7f 100644 --- a/lib/net/http/responses.rb +++ b/lib/net/http/responses.rb @@ -231,6 +231,7 @@ class Net::HTTPResponse '304' => Net::HTTPNotModified, '305' => Net::HTTPUseProxy, '307' => Net::HTTPTemporaryRedirect, + '308' => Net::HTTPPermanentRedirect, '400' => Net::HTTPBadRequest, '401' => Net::HTTPUnauthorized, |