diff options
author | ianb <devnull@localhost> | 2006-03-30 21:58:30 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-03-30 21:58:30 +0000 |
commit | 4092fd73536b657bee918134e4df1ac65693d52f (patch) | |
tree | 535a813631e469e525386069cce4f244dcf58c0c /paste/httpheaders.py | |
parent | f1485e846eb41d1b81e2ed0643f8dd0d8b026a91 (diff) | |
download | paste-4092fd73536b657bee918134e4df1ac65693d52f.tar.gz |
Allowed for a -1 value in the range
Diffstat (limited to 'paste/httpheaders.py')
-rw-r--r-- | paste/httpheaders.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpheaders.py b/paste/httpheaders.py index d3c3e19..0350d66 100644 --- a/paste/httpheaders.py +++ b/paste/httpheaders.py @@ -935,7 +935,7 @@ class _ContentRange(_SingleValueHeader): """ def compose(self, first_byte=None, last_byte=None, total_length=None): retval = "%d-%d/%d" % (first_byte, last_byte, total_length) - assert first_byte <= last_byte + assert last_byte == -1 or first_byte <= last_byte assert last_byte < total_length return (retval,) _ContentRange('Content-Range', 'entity', 'RFC 2616, 14.6') |