зеркало из https://github.com/github/ruby.git
* lib/net/http/responses.rb: added Net::HTTPPermanentRedirect(308)
Contributed by @yorkie [fix GH-638] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d07a013cf9
Коммит
595782b924
|
@ -1,3 +1,8 @@
|
|||
Thu Jun 12 18:31:01 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_freeze): shrink the buffer before freezing, as
|
||||
|
|
|
@ -85,7 +85,9 @@ end
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче