diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-08 01:27:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-08 01:27:19 +0000 |
commit | 0be97c701510f67e0786347d29f2c0286dcc4310 (patch) | |
tree | 1c7ae75a42775944d4b64e37212650741e2dbebe /lib/net/http/header.rb | |
parent | 354028abe18bc5862a1b45e2f45060bf85c1ae35 (diff) | |
download | ruby-0be97c701510f67e0786347d29f2c0286dcc4310.tar.gz |
range.c: revert r42400
* range.c (range_last): revert r42400. [Bug #8739]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/http/header.rb')
-rw-r--r-- | lib/net/http/header.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb index 04981406d3..029b647b5e 100644 --- a/lib/net/http/header.rb +++ b/lib/net/http/header.rb @@ -237,7 +237,8 @@ module Net::HTTPHeader rangestr = (n > 0 ? "0-#{n-1}" : "-#{-n}") when Range first = r.first - last = r.last + last = r.end + last -= 1 if r.exclude_end? if last == -1 rangestr = (first > 0 ? "#{first}-" : "-#{-first}") else |