]> git.ipfire.org Git - thirdparty/tornado.git/commit
Fix #2521: Serve full file when range start is negative and exceeds the total length...
authorGaren Chan <1412950785@qq.com>
Fri, 2 Nov 2018 19:40:33 +0000 (03:40 +0800)
committerBen Darnell <ben@bendarnell.com>
Fri, 2 Nov 2018 19:40:33 +0000 (15:40 -0400)
commitdb529031a1e1a6e951826aba0b7d0b18f05cd4c7
tree7c74b87d95e12a73246b1b81cc8b5f4160f82a9e
parenta8420fc681c5423d072978f00eab4d0645057d16
Fix #2521: Serve full file when range start is negative and exceeds the total length (#2522)

* Serve full file while range negative past start.

Fix issue #2521.

* Return 416 while range end less than start.

When range end less than start, the content length will be negative and
HTTPOutputError will be raised.
tornado/test/web_test.py
tornado/web.py