ruby-changes:34996
From: naruse <ko1@a...>
Date: Wed, 6 Aug 2014 04:20:40 +0900 (JST)
Subject: [ruby-changes:34996] naruse:r47078 (trunk): * lib/net/http/requests.rb (Net::HTTP::Options::RESPONSE_HAS_BODY):
naruse 2014-08-06 04:20:28 +0900 (Wed, 06 Aug 2014) New Revision: 47078 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47078 Log: * 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 Modified files: trunk/ChangeLog trunk/lib/net/http/requests.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47077) +++ ChangeLog (revision 47078) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Aug 6 04:16:05 2014 NARUSE, Yui <naruse@r...> + + * 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@r...> * lib/net/http/generic_request.rb (Net::HTTP::GenericRequest#exec): Index: lib/net/http/requests.rb =================================================================== --- lib/net/http/requests.rb (revision 47077) +++ lib/net/http/requests.rb (revision 47078) @@ -46,7 +46,7 @@ end https://github.com/ruby/ruby/blob/trunk/lib/net/http/requests.rb#L46 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. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/