Ticket #9140: mutlipart_post_bug_fix.diff

File mutlipart_post_bug_fix.diff, 457 bytes (added by Nowell Strite, 16 years ago)

a simple patch to accept 0 length CONTENT_LENGTH header as valid to fix current bug descibed in ticket

  • django/http/multipartparser.py

     
    7777            # For now set it to 0; we'll try again later on down.
    7878            content_length = 0
    7979
    80         if content_length <= 0:
     80        if content_length < 0:
    8181            # This means we shouldn't continue...raise an error.
    8282            raise MultiPartParserError("Invalid content length: %r" % content_length)
Back to Top