Skip to content

Commit

Permalink
Version bump to 2.2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshi Nakamura committed Jun 2, 2011
1 parent 2afaf38 commit bb6fbd5
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 7 deletions.
43 changes: 42 additions & 1 deletion README.txt
Expand Up @@ -32,7 +32,7 @@ See HTTPClient for documentation.

== Author

Name:: NAKAMURA, Hiroshi
Name:: Hiroshi Nakamura
E-mail:: nahi@ruby-lang.org
Project web site:: http://github.com/nahi/httpclient

Expand Down Expand Up @@ -95,6 +95,47 @@ Thanks in advance.

== Changes

= Changes in 2.2.1 =

Jun 2, 2011 - version 2.2.1

* Bug fixes

* For Lighttpd + PUT/POST support, do not send a request using chunked
encoding when IO respond to :size, File for example.

- There is no need to send query with Transfer-Encoding: chuncked when
IO respond to :size.
- 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.

This fix is by TANABE Ken-ichi <nabeken@tknetworks.org>. Thanks!

* Allow empty http_proxy ENV variable. Just treat it the same as if it's
nil/unset. This fix is by Ash Berlin <ash_github@firemirror.com>.
Thanks!

* Check EOF while reading chunked response and close the session. It
raised NoMethodError.

* Changes

* Updated trusted CA certificates file (cacert.p7s and cacert_sha1.p7s).
CA certs are imported from
'Java(TM) SE Runtime Environment (build 1.6.0_25-b06)'.

* Changed default chunk size from 4K to 16K. It's used for reading size
at a time.

= Changes in 2.2.0 =

Expand Down
9 changes: 4 additions & 5 deletions httpclient.gemspec
@@ -1,14 +1,13 @@
require 'rubygems'
SPEC = Gem::Specification.new do |s|
s.name = "httpclient"
s.version = "2.2.0.2"
s.date = "2011-04-25"
s.author = "NAKAMURA, Hiroshi"
s.version = "2.2.1"
s.date = "2011-06-02"
s.author = "Hiroshi Nakamura"
s.email = "nahi@ruby-lang.org"
s.homepage = "http://github.com/nahi/httpclient"
s.platform = Gem::Platform::RUBY
s.summary = "gives something like the functionality of libwww-perl (LWP) in Ruby"
s.files = Dir.glob("{lib}/**/*")
s.files = Dir.glob("{lib,sample,test}/**/*")
s.require_path = "lib"
s.has_rdoc = true
end
2 changes: 1 addition & 1 deletion lib/httpclient.rb
Expand Up @@ -229,7 +229,7 @@
# ruby -rhttpclient -e 'p HTTPClient.head(ARGV.shift).header["last-modified"]' http://dev.ctor.org/
#
class HTTPClient
VERSION = '2.2.0.2'
VERSION = '2.2.1'
RUBY_VERSION_STRING = "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
/: (\S+) (\S+)/ =~ %q$Id$
LIB_NAME = "(#{$1}/#{$2}, #{RUBY_VERSION_STRING})"
Expand Down

0 comments on commit bb6fbd5

Please sign in to comment.