* lib/net/http.rb (send_request_with_body): Content-Length should be byte length of string. (closes #203)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2008-08-12 06:32:50 +00:00
Родитель 6d8c1483d6
Коммит 00b129c4e4
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Tue Aug 12 15:31:04 2008 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb (send_request_with_body): Content-Length should
be byte length of string. (closes #203)
Tue Aug 12 15:17:06 2008 NAKAMURA Usaku <usa@ruby-lang.org> Tue Aug 12 15:17:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* enc/depend: (transvpath_prefix): prefix has no extension, so replace * enc/depend: (transvpath_prefix): prefix has no extension, so replace

Просмотреть файл

@ -1648,7 +1648,7 @@ module Net #:nodoc:
private private
def send_request_with_body(sock, ver, path, body) def send_request_with_body(sock, ver, path, body)
self.content_length = body.length self.content_length = body.bytesize
delete 'Transfer-Encoding' delete 'Transfer-Encoding'
supply_default_content_type supply_default_content_type
write_header sock, ver, path write_header sock, ver, path