mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merge revision(s) r45529: [Backport #8182]
* lib/xmlrpc/client.rb (do_rpc): don't check body length. If HTTP content-encoding is used, the length may be different. [Bug #8182] [ruby-core:53811] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@46186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1c9a3e6eb8
commit
909291085c
3 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
Wed May 28 00:23:11 2014 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/xmlrpc/client.rb (do_rpc): don't check body length.
|
||||
If HTTP content-encoding is used, the length may be different.
|
||||
[Bug #8182] [ruby-core:53811]
|
||||
|
||||
Wed May 28 00:18:29 2014 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* ext/date/date_core.c (d_lite_cmp): should compare with #<.
|
||||
|
|
|
@ -507,8 +507,6 @@ module XMLRPC # :nodoc:
|
|||
expected = resp["Content-Length"] || "<unknown>"
|
||||
if data.nil? or data.bytesize == 0
|
||||
raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
|
||||
elsif expected != "<unknown>" and expected.to_i != data.bytesize and resp["Transfer-Encoding"].nil?
|
||||
raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
|
||||
end
|
||||
|
||||
parse_set_cookies(resp.get_fields("Set-Cookie"))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define RUBY_VERSION "2.1.2"
|
||||
#define RUBY_RELEASE_DATE "2014-05-28"
|
||||
#define RUBY_PATCHLEVEL 107
|
||||
#define RUBY_PATCHLEVEL 108
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2014
|
||||
#define RUBY_RELEASE_MONTH 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue