[Twisted-web] Bug found 1.3.0 twisted.web.static module

Tommi Virtanen tv at twistedmatrix.com
Thu Feb 10 15:57:27 MST 2005

Tommi Virtanen wrote:
> Mike Marchionna wrote:
>> 1)    The Content-Length header value is off by 1.  For example a
>> request with a Range: bytes=0-1999 would yield Content-Length of 1999
>> when it should actually be Content-Length: 2000.
>> 2)    The Content-Range response header was generated incorrectly.  For
>> example the request with a Range: bytes=0-1999 header for a file of
>> 100000 bytes in size would yield a Content-Range header like
>> Content-Range:  bytes 0-1999/1999, when it should be Content-Range:
>> bytes 0-1999/100000.

Added .todo unit tests to twisted.web.test.test_static.

Fixed the exact same bugs, and added unit test, to nevow.

More information about the Twisted-web mailing list