Changeset 405
- Timestamp:
- 07/10/07 22:46:22 (1 year ago)
- Files:
-
- version_0/lib/protocols/httpclient.rb (modified) (1 diff)
- version_0/tests/test_eventables.rb (modified) (1 diff)
- version_0/tests/test_httpclient.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
version_0/lib/protocols/httpclient.rb
r329 r405 121 121 122 122 # ESSENTIAL for the request's line-endings to be CRLF, not LF. Some servers misbehave otherwise. 123 # TODO: We ASSUME the caller wants to send a 1.1 request. May not be a good assumption. 123 124 req = [ 124 "#{verb} #{request}#{qs} HTTP/1. 0",125 "#{verb} #{request}#{qs} HTTP/1.1", 125 126 "Host: #{host}:#{port}", 126 127 "User-agent: Ruby EventMachine", version_0/tests/test_eventables.rb
r330 r405 57 57 } 58 58 59 assert n == 159 assert_equal( 1, n ) 60 60 end 61 61 version_0/tests/test_httpclient.rb
r330 r405 153 153 end 154 154 155 # TODO, this is WRONG. The handler is asserting an HTTP 1.1 request, but the client 156 # is sending a 1.0 request. Gotta fix the client 155 157 def test_post 156 158 response = nil
