Permalink
Commits on Jun 2, 2011
  1. Version bump to 2.2.1.

    nahi committed Jun 2, 2011
  2. chmod 644

    nahi committed Jun 2, 2011
  3. Add tags, pkg and coverage

    nahi committed Jun 2, 2011
  4. Make test TZ-free

    nahi committed Jun 2, 2011
    No one except graaff and JST guys run testcase many years...
    Close #39.
  5. Close session when we get EOF while reading message body

    nahi committed Jun 2, 2011
    For chunked encoding, we didn't check it. For non-chunked encoding, it
    was closed at get_body but there was a chance not closed if the session
    is keep-alive.  Close #51.
Commits on May 30, 2011
  1. Remove extra call to File#rewind

    nahi committed May 30, 2011
    Based on similarity between Body#dump and Body#dump_chunked, I found
    that File#rewind is wrongly called for MIME/multipart form upload.
  2. Add test for streaming + non-chunked post

    nahi committed May 30, 2011
    And I realized that chunk size was overridden by session. Changed the
    chunk size from 4K to 16K.
  3. Regression: setting proxy with URI

    nahi committed May 30, 2011
    client.proxy = '' and client.proxy = URI.parse('') broken by
    f29310d. Fixed.
  4. Merge pull request #59 from nabeken/improved-put-post

    nahi committed May 30, 2011
    (resubmit) disable Transfer-Encoding: chuncked when IO respond to :read
  5. Merge pull request #57 from ashb/master

    nahi committed May 30, 2011
    ENV['http_proxy'] can be an empty string
Commits on May 28, 2011
  1. Do not send request with Transfer-Encoding: chuncked when IO respond …

    nabeken committed May 20, 2011
    …to :size
    
    1. There is no need to send query with Transfer-Encoding: chuncked when
       IO respond to :size.
    2. Lighttpd does not support PUT, POST with Transfer-Encoding: chuncked.
       You will see that the lighty respond with 200 OK, but there is a file
       whose size is zero...
    
    LIMITATION:
       timeout occurs certainly when you send very large file and @send_timeout is
       default since HTTPClient::Session#query() assumes that *all* write
       are finished in @send_timeout sec not each write.
    
    WORKAROUND:
       increment @send_timeout and @receive_timeout or set @send_timeout and
       @receive_timeout to 0 not to be timeout.
Commits on May 25, 2011
  1. Use free port number for WEBrick::HTTPProxyServer

    nabeken authored and nahi committed May 24, 2011
    Signed-off-by: Hiroshi Nakamura <nahi@ruby-lang.org>
Commits on May 24, 2011
  1. Ignore *~

    nahi committed May 24, 2011
  2. Extract test helper

    nahi committed May 24, 2011
    Preparing port number rotation.
Commits on May 22, 2011
  1. Update trusted CA cert.

    nahi committed May 22, 2011
    Import trusted CA cert entries in Sun's JDK6u25.
Commits on May 16, 2011
  1. Support empty (but set) http_proxy ENV variable

    ashb committed May 16, 2011
    Just treat it the same as if it was nil/unset
Commits on Apr 25, 2011
  1. Version bump to 2.2.0.2

    nahi committed Apr 25, 2011
  2. restore webmock compatibility.

    nahi committed Apr 25, 2011
    webmock 1.6.2 depends on HTTP::Message#body.content to work.  let's keep
    it work iif webmock is loaded for a while.
Commits on Apr 20, 2011
  1. keyword_argument should accept nil as a value.

    nahi committed Apr 20, 2011
    Accept HTTPClient.new(:proxy => nil) as a keyword argument.
Commits on Apr 19, 2011
  1. Version bump to 2.2.0.1.

    nahi committed Apr 19, 2011
    This release only add 1 alias for webmock compatibility.
  2. Fix webmock compatibility.

    nahi committed Apr 19, 2011
    Webmock depends on HTTP::Message#body=. Fix it.
    
    Webmock also uses HTTP::Message#body.content but I changed Message#body
    to return a String so I cannot recover this compatibility. (Adding
    singleton method causes Marshal.dump failure for returned body String.)
    I'll ask webmock to fix in the next release.
Commits on Apr 8, 2011
  1. Version bump to 2.2.0.

    nahi committed Apr 8, 2011
  2. Update method usage examples.

    nahi committed Apr 8, 2011
  3. Add res.headers method which returns a Hash of headers.

    nahi committed Apr 8, 2011
    Hash key and value are both String. Each key has a single value so you
    can't extract exact value when a message has multiple headers like
    'Set-Cookie'. Use header['Set-Cookie'] for that purpose.
    (It returns an Array always)
  4. Add res.cookies method.

    nahi committed Apr 8, 2011
    It returns parsed cookie in response header. It's different from
    client.cookie_manager.cookies. manager keeps persistent cookies in it.
  5. Handle argument Hash at new method: argument_to_hash

    nahi committed Apr 8, 2011
    It converts array style arguments to defined Hash.
Commits on Apr 7, 2011
  1. Do not invoke scheduler thread when it won't be used.

    nahi committed Apr 7, 2011
    For 1.9 & JRuby.
Commits on Apr 6, 2011
  1. Load CA certs lazily.

    nahi committed Apr 6, 2011
     * call load_cacerts lazily. new method SSLConfig#load_cacerts loads
       bundled CA certs as trust anchors.
     * rename: set_trust_ca -> add_trust_ca to fit the actual behavior.
Commits on Apr 5, 2011
  1. Avoid unused variable warning of testcase.

    nahi committed Apr 5, 2011
    Let GC collects a keep-alive server thread.