aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index c19064bf6d..b3ddee54e0 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1648,7 +1648,7 @@ module Net #:nodoc:
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