ruby-changes:7000
From: aamine <ko1@a...>
Date: Tue, 12 Aug 2008 15:33:05 +0900 (JST)
Subject: [ruby-changes:7000] Ruby:r18518 (trunk): * lib/net/http.rb (send_request_with_body): Content-Length should be byte length of string. (closes #203)
aamine 2008-08-12 15:32:50 +0900 (Tue, 12 Aug 2008) New Revision: 18518 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18518 Log: * lib/net/http.rb (send_request_with_body): Content-Length should be byte length of string. (closes #203) Modified files: trunk/ChangeLog trunk/lib/net/http.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 18517) +++ ChangeLog (revision 18518) @@ -1,3 +1,8 @@ +Tue Aug 12 15:31:04 2008 Minero Aoki <aamine@l...> + + * 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@r...> * enc/depend: (transvpath_prefix): prefix has no extension, so replace Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 18517) +++ lib/net/http.rb (revision 18518) @@ -1648,7 +1648,7 @@ private def send_request_with_body(sock, ver, path, body) - self.content_length = body.length + self.content_length = body.bytesize delete 'Transfer-Encoding' supply_default_content_type write_header sock, ver, path -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/