From 90a16cb228bd803368357cf4478430bc56b7a110 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 5 Aug 2014 19:20:28 +0000 Subject: * 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 --- lib/net/http/requests.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/net/http') 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. -- cgit v1.2.3