[ruby-cvs:54224] naruse:r47077 (trunk): * lib/net/http/generic_request.rb (Net::HTTP::GenericRequest#exec):

naruse at ruby-lang.org naruse at ruby-lang.org
Wed Aug 6 04:10:24 JST 2014


naruse	2014-08-06 04:10:23 +0900 (Wed, 06 Aug 2014)

  New Revision: 47077

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47077

  Log:
    * lib/net/http/generic_request.rb (Net::HTTP::GenericRequest#exec):
      handle req['host'] in update_uri.
    
    * lib/net/http/generic_request.rb
      (Net::HTTP::GenericRequest#update_uri):
      use req['host'] if it is explicitly set. Even if URI is given,
      it is already used for the initial value of req['host'].
      Therefore overwritten value should be respected. [Bug #10054]

  Modified files:
    trunk/ChangeLog
    trunk/lib/net/http/generic_request.rb
    trunk/test/net/http/test_http.rb


More information about the ruby-cvs mailing list