summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd_db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl
index 8ee6fc3f..0479c9c1 100644
--- a/src/couchdb/couch_httpd_db.erl
+++ b/src/couchdb/couch_httpd_db.erl
@@ -1096,7 +1096,7 @@ parse_ranges([], _Len, Acc) ->
parse_ranges([{From,To}|Rest], Len, Acc) ->
{From1, To1} = case {From, To} of
{none, To} ->
- {Len - To - 1, Len - 1};
+ {Len - To, Len - 1};
{From, none} ->
{From, Len - 1};
_ ->