[前][次][番号順一覧][スレッド一覧]

ruby-changes:34331

From: hsbt <ko1@a...>
Date: Thu, 12 Jun 2014 18:32:49 +0900 (JST)
Subject: [ruby-changes:34331] hsbt:r46412 (trunk): * lib/net/http/responses.rb: added Net::HTTPPermanentRedirect(308)

hsbt	2014-06-12 18:32:36 +0900 (Thu, 12 Jun 2014)

  New Revision: 46412

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46412

  Log:
    * lib/net/http/responses.rb: added Net::HTTPPermanentRedirect(308)
      Contributed by @yorkie [fix GH-638]

  Modified files:
    trunk/ChangeLog
    trunk/lib/net/http/responses.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46411)
+++ ChangeLog	(revision 46412)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun 12 18:31:01 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* lib/net/http/responses.rb: added Net::HTTPPermanentRedirect(308)
+	  Contributed by @yorkie [fix GH-638]
+
 Thu Jun 12 13:27:38 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* string.c (rb_str_freeze): shrink the buffer before freezing, as
Index: lib/net/http/responses.rb
===================================================================
--- lib/net/http/responses.rb	(revision 46411)
+++ lib/net/http/responses.rb	(revision 46412)
@@ -85,7 +85,9 @@ end https://github.com/ruby/ruby/blob/trunk/lib/net/http/responses.rb#L85
 class Net::HTTPTemporaryRedirect < Net::HTTPRedirection  # 307
   HAS_BODY = true
 end
-# 308 Permanent Redirect - in draft
+class Net::HTTPPermanentRedirect < Net::HTTPRedirection  # 308
+  HAS_BODY = true
+end
 
 class Net::HTTPBadRequest < Net::HTTPClientError                    # 400
   HAS_BODY = true

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]