Permalink
Commits on Oct 10, 2012
  1. Version bump to 2.3.0.1

    nahi committed Oct 10, 2012
  2. Revert "Do not read IO till EOF when the size is given"

    nahi committed Oct 10, 2012
    This reverts commit 1270672.
  3. Revert "Remove the workaround for JRUBY-6136"

    nahi committed Oct 10, 2012
    This reverts commit 8bb4854.
  4. Revert "Allow chunked multipart POST of sized IO"

    nahi committed Oct 10, 2012
    This reverts commit 13c3f87.
  5. Skip detecting old versions of addressable

    nahi committed Oct 10, 2012
    Addressable::URI#default_port that httpclient depends on does not exist
    in old versions of addressable gem.  Fixes #120.
  6. Version bump to 2.3.0

    nahi committed Oct 10, 2012
  7. Cookies couldn't work property if the path in an URI is omitted

    nahi committed Oct 10, 2012
    Merged the patch from Teshootub7. Thanks!
    
    Fixes #115.
  8. Allow chunked multipart POST of sized IO

    nahi committed Oct 10, 2012
    Based on the fix for #117, this commit allows chunked multipart POST of
    sized IO.  Fixes #112.
  9. Remove the workaround for JRUBY-6136

    nahi committed Oct 10, 2012
    The logic introduced at 767cd87 was
    removed by 1270672 so remove the test
    as well.
    
    Now JRUBY-6136 can happen again but anyway we have more 'IO#size' calls
    that could cause the issue.  Better fix JRuby itself now.
  10. Do not read IO till EOF when the size is given

    nahi committed Oct 10, 2012
    HTTPClient checks if the given IO responds to :size and set
    "Content-Length" header if the size is given.  But it read too much till
    EOF.  Should read just as the specified size.
    
    To make the logic simple, now HTTPClient doesn't try to calculate the
    whole size of request body for Content-Length if the request body is a
    multipart and contains an IO as a parameter.
    
    Fixes #117.
Commits on Oct 9, 2012
  1. Addressable gem support (only if it exists)

    nahi committed Oct 9, 2012
    It wraps Addressable::URI for subtle URI compatibilities that httpclient
    requires.
Commits on Oct 8, 2012
  1. Make SSLv2 harder to use.

    nahi committed Oct 8, 2012
    SSLv2 is already disabled by options and ciphers by default. Now
    httpclient doesn't even try to connect with SSLv2.
  2. Turn $DEBUG on CLI execution

    nahi committed Oct 8, 2012
Commits on Oct 7, 2012
  1. Add CLI

    nahi committed Oct 7, 2012
    bin/httpclient is installed as CLI.
    
    Usage: 1) % httpclient get https://www.google.co.jp/ q=ruby
    Usage: 2) %httpclient
    
    For 1) it issues a GET request to the given URI and shows the wiredump and
    the parsed result.  For 2) it invokes irb shell with the binding that has a
    HTTPClient as 'self'.  You can call HTTPClient instance methods like;
    
      > get "https://www.google.co.jp/", :q => :ruby
  2. Handle '303 See Other' properly

    nahi committed Oct 7, 2012
    RFC2616 says it should be redirected with GET.
  3. Fix "100-continue" support

    nahi committed Oct 7, 2012
    I guess it didn't work properly long time...  Fixed #116. Thanks for
    reporting!
  4. Add the testcase for nil value.

    nahi committed Oct 7, 2012
  5. Merge pull request #118 from pinge/multipart_boolean_values

    nahi committed Oct 7, 2012
    support for boolean values when making POST/PUT requests with multiipart/form Content-Type
Commits on Oct 5, 2012
  1. added support for boolean values when making POST/PUT requests with m…

    pinge committed Oct 5, 2012
    …ultipart/form Content-Type
Commits on Sep 22, 2012
  1. Followup fix for leading dot in no_proxy

    nahi committed Sep 22, 2012
     * '.foo.com' in no_proxy should match with 'www.foo.com'
     * '.foo.com' in no_proxy should not match with 'foo.com'
    
    cf. e2bf6a0
  2. Merge pull request #110 from databus23/patch-1

    nahi committed Sep 22, 2012
    Allow leading dots in no_proxy entries
Commits on Sep 19, 2012
Commits on Sep 3, 2012
  1. Merge pull request #113 from texasjusticar/master

    nahi committed Sep 3, 2012
    Adding ok? convenience method to HTTP:Message
Commits on Aug 30, 2012
  1. adding convenience ok? instance method to HTTP::Message

    Ethan Burrow committed Aug 30, 2012
Commits on Aug 24, 2012
  1. Allow leading dots in no_proxy hostname suffixes

    databus23 committed Aug 24, 2012
    In our network infrastructure the no_proxy environment variable contains host suffixes with leading dots. (e.g: "localhost,.corp")
    This normally works with a lot of unix command line tools (git,wget, etc).
    The change shouldn't break anything but just allow an optional leading '.' in front of the no_proxy elements
Commits on Aug 14, 2012
  1. Version bump to 2.2.7

    nahi committed Aug 14, 2012
  2. Fix arity incompatibility introduced in 2.2.6

    nahi committed Aug 14, 2012
    ed9c65c for #97 required
    (Header|Body)init_response argument is given. It broke Webmock
    compatibility.  See #107.
Commits on Aug 13, 2012
  1. Version bump to 2.2.6

    nahi committed Aug 13, 2012
Commits on Aug 11, 2012
  1. Allow :follow_redirect => true for HEAD request

    nahi committed Aug 11, 2012
    Fixed #101.
  2. Merge pull request #100 from knu/master

    nahi committed Aug 11, 2012
    Accept an array of strings (and IO-likes) as a query value.
  3. Merge pull request #99 from fhars/return-redirect-result

    nahi committed Aug 11, 2012
    Return redirect result
    
    (Sounds quite reasonable)
  4. Merge pull request #98 from fhars/digest-auth

    nahi committed Aug 11, 2012
    Digest auth changes
    
    (Awesome contributions for new feature and existing tests. Thanks!)
  5. Fill request parameters in response Message::Header

    nahi committed Aug 11, 2012
    Just transplant req.header.(request_method,request_uri,request_query) to
    res.header.  Fixes #97.
  6. Avoid Hash order dependency

    nahi committed Aug 11, 2012
    Test failure in cf6bd14. Thanks
    BuildHive and TravisCI!
  7. Allow body for DELETE

    nahi committed Aug 11, 2012
    entity-body is not explicitly prohibited in spec for methods other than
    HEAD and TRACE.  Allow DELETE to have body as the second argument (or
    :body parameter).
    
    Also explicitly add 'Content-Type: application/x-www-form-urlencoded'
    header if entity-body is encoded in x-www-form-urlencoded. This affects
    all methods not only for DELETE.
    
    Fixes #102.