Bug #7650 » generic_request2.patch
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
|
- « Previous
- 1
- 2
- Next »