diff options
-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. |