Project

General

Profile

Bug #7650 ยป generic_request.patch

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

View differences:

lib/net/http/generic_request.rb
99 99
  #
100 100

  
101 101
  def exec(sock, ver, path)   #:nodoc: internal use only
102
    self['host'] = "#{@uri.host}:#{@uri.port}" if @uri
102
    self['host'] = @uri.host if @uri
103 103

  
104 104
    if @body
105 105
      send_request_with_body sock, ver, path, @body