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 /lib/net/http/requests.rb | |
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
Diffstat (limited to 'lib/net/http/requests.rb')
-rw-r--r-- | lib/net/http/requests.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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. |