зеркало из https://github.com/github/ruby.git
* lib/net/http/requests.rb (Net::HTTP::Options::RESPONSE_HAS_BODY):
OPTIONS requests may have response bodies. [Feature #8429] http://tools.ietf.org/html/rfc7231#section-4.3.7 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
70a2eb6399
Коммит
90a16cb228
|
@ -1,3 +1,9 @@
|
|||
Wed Aug 6 04:16:05 2014 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/net/http/requests.rb (Net::HTTP::Options::RESPONSE_HAS_BODY):
|
||||
OPTIONS requests may have response bodies. [Feature #8429]
|
||||
http://tools.ietf.org/html/rfc7231#section-4.3.7
|
||||
|
||||
Wed Aug 6 03:18:04 2014 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/net/http/generic_request.rb (Net::HTTP::GenericRequest#exec):
|
||||
|
|
|
@ -46,7 +46,7 @@ end
|
|||
class Net::HTTP::Options < Net::HTTPRequest
|
||||
METHOD = 'OPTIONS'
|
||||
REQUEST_HAS_BODY = false
|
||||
RESPONSE_HAS_BODY = false
|
||||
RESPONSE_HAS_BODY = true
|
||||
end
|
||||
|
||||
# See Net::HTTPGenericRequest for attributes and methods.
|
||||
|
|
Загрузка…
Ссылка в новой задаче