diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-05 19:20:28 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-05 19:20:28 +0000 |
commit | 90a16cb228bd803368357cf4478430bc56b7a110 (patch) | |
tree | 3f34437be8522e6cac01ee450f73b4f2744d28c1 | |
parent | 70a2eb63999265ff7e8d46d1f5b410c8ee3d30d7 (diff) | |
download | ruby-90a16cb228bd803368357cf4478430bc56b7a110.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/net/http/requests.rb | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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): diff --git a/lib/net/http/requests.rb b/lib/net/http/requests.rb index ef719ea6e7..c1f8360479 100644 --- a/lib/net/http/requests.rb +++ b/lib/net/http/requests.rb @@ -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. |