Bug #7650 » generic_request.patch
| lib/net/http/generic_request.rb | ||
|---|---|---|
|
#
|
||
|
def exec(sock, ver, path) #:nodoc: internal use only
|
||
|
self['host'] = "#{@uri.host}:#{@uri.port}" if @uri
|
||
|
self['host'] = @uri.host if @uri
|
||
|
if @body
|
||
|
send_request_with_body sock, ver, path, @body
|
||