mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* lib/net/http.rb (Net::HTTP#send_request_with_body_stream): use
String#bytesize instead of String#length. reported by shekhei (shek hei wong) at [ruby-core:53775] [Backport #8176]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@42461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e6716b5e38
commit
5ee6004808
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
Fri Aug 9 15:56:05 2013 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/net/http.rb (Net::HTTP#send_request_with_body_stream): use
|
||||
String#bytesize instead of String#length.
|
||||
reported by shekhei (shek hei wong) at [ruby-core:53775]
|
||||
[Backport #8176].
|
||||
|
||||
Fri Aug 9 15:50:11 2013 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (wrename): use MoveFileExW instead of MoveFileW,
|
||||
|
|
|
@ -1948,7 +1948,7 @@ module Net #:nodoc:
|
|||
wait_for_continue sock, ver if sock.continue_timeout
|
||||
if chunked?
|
||||
while s = f.read(1024)
|
||||
sock.write(sprintf("%x\r\n", s.length) << s << "\r\n")
|
||||
sock.write(sprintf("%x\r\n", s.bytesize) << s << "\r\n")
|
||||
end
|
||||
sock.write "0\r\n\r\n"
|
||||
else
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define RUBY_VERSION "1.9.3"
|
||||
#define RUBY_PATCHLEVEL 461
|
||||
#define RUBY_PATCHLEVEL 462
|
||||
|
||||
#define RUBY_RELEASE_DATE "2013-08-09"
|
||||
#define RUBY_RELEASE_YEAR 2013
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue