Changeset 586
- Timestamp:
- 11/26/07 04:46:48 (1 year ago)
- Files:
-
- version_0/lib/protocols/httpcli2.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
version_0/lib/protocols/httpcli2.rb
r585 r586 31 31 include LineText2 32 32 33 # TODO: Make this behave appropriate in case a #connect fails. 34 # Currently, this produces no errors. 33 35 34 36 # Make a connection to a remote HTTP server. … … 98 100 @current_response ||= @requests.last.last 99 101 @connected.callback { 102 az = args[:authorization] and az = "Authorization: #{az}\r\n" 103 100 104 r = [ 101 105 "#{args[:verb]} #{args[:uri]} HTTP/#{args[:version] || "1.1"}\r\n", 102 106 "Host: #{args[:host_header] || @host_header}\r\n", 107 az || "", 103 108 "\r\n" 104 109 ] 110 p r 105 111 send_data r.join 106 112 }
