From ea67287ac14e1b7f2be1ef586ab9770f709a4f7b Mon Sep 17 00:00:00 2001 From: hsbt Date: Thu, 9 Jul 2015 01:19:01 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ lib/net/http/responses.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index a97ebc9658..fd86fdd131 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 9 10:03:10 2015 SHIBATA Hiroshi + + * lib/net/http/responses.rb: Added 308 status to CODE_TO_OBJ list. + [fix GH-961] Patch by @billinghamj + Thu Jul 9 09:34:14 2015 Koichi Sasada * vm_core.h (rb_control_frame_t): fix comments (layout index). 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,