Project

General

Profile

Bug #7650 » generic_request2.patch

hsbt (Hiroshi SHIBATA), 01/05/2013 07:44 PM

View differences:

lib/net/http/generic_request.rb
#
def exec(sock, ver, path) #:nodoc: internal use only
self['host'] = "#{@uri.host}:#{@uri.port}" if @uri
if @uri && @uri.port != @uri.default_port
self['host'] = "#{@uri.host}:#{@uri.port}"
end
if @body
send_request_with_body sock, ver, path, @body
(2-2/2)