summaryrefslogtreecommitdiff
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 e037f4b360..3681deaf13 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 )