8000 merge revision(s) r45529: [Backport #8182] · github/ruby@d5705f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit d5705f5

Browse files
committed
merge revision(s) r45529: [Backport ruby#8182]
* lib/xmlrpc/client.rb (do_rpc): don't check body length. If HTTP content-encoding is used, the length may be different. [Bug ruby#8182] [ruby-core:53811] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@46186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent f6a385b commit d5705f5

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Wed May 28 00:23:11 2014 NARUSE, Yui <naruse@ruby-lang.org>
2+
3+
* lib/xmlrpc/client.rb (do_rpc): don't check body length.
4+
If HTTP content-encoding is used, the length may be different.
5+
[Bug #8182] [ruby-core:53811]
6+
17
Wed May 28 00:18:29 2014 Tadayoshi Funaba <tadf@dotrb.org>
28

39
* ext/date/date_core.c (d_lite_cmp): should compare with #<.

lib/xmlrpc/client.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,6 @@ def do_rpc(request, async=false)
507507
expected = resp["Content-Length"] || "<unknown>"
508508
if data.nil? or data.bytesize == 0
509509
raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
510-
elsif expected != "<unknown>" and expected.to_i != data.bytesize and resp["Transfer-Encoding"].nil?
511-
raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
512510
end
513511

514512
parse_set_cookies(resp.get_fields("Set-Cookie"))

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.2"
22
#define RUBY_RELEASE_DATE "2014-05-28"
3-
#define RUBY_PATCHLEVEL 107
3+
#define RUBY_PATCHLEVEL 108
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 5

0 commit comments

Comments
 (0)
0