Changeset 405

Show
Ignore:
Timestamp:
07/10/07 22:46:22 (1 year ago)
Author:
blackhedd
Message:

http client now issues a 1.1 request, not 1.0. ought to be user-definable.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/lib/protocols/httpclient.rb

    r329 r405  
    121121 
    122122    # 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. 
    123124    req = [ 
    124       "#{verb} #{request}#{qs} HTTP/1.0", 
     125      "#{verb} #{request}#{qs} HTTP/1.1", 
    125126      "Host: #{host}:#{port}", 
    126127      "User-agent: Ruby EventMachine", 
  • version_0/tests/test_eventables.rb

    r330 r405  
    5757    } 
    5858 
    59     assert n == 1 
     59    assert_equal( 1, n ) 
    6060  end 
    6161 
  • version_0/tests/test_httpclient.rb

    r330 r405  
    153153  end 
    154154 
     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 
    155157  def test_post 
    156158      response = nil