From cd565c1134351d2af144e071e79a1facbc1bc842 Mon Sep 17 00:00:00 2001 From: matz Date: Sun, 27 Jul 2003 17:20:29 +0000 Subject: * string.c (rb_str_chomp_bang): defer rb_str_modify() to actual modify point. other methods, replace, tr, delete, squeeze, lstrip, and rstrip as well. * string.c (rb_str_rstrip_bang): remove trailing '\0' at the end of string. * string.c (rb_str_lstrip_bang): do not strip '\0' from the left. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/net/http.rb b/lib/net/http.rb index e037f4b36..3681deaf1 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1144,7 +1144,7 @@ module Net def range_length r = self.content_range - r and r.length + r and r.end - r.begin end def basic_auth( account, password ) -- cgit