Ticket #194: cascade.py.diff

File cascade.py.diff, 448 bytes (added by w31rd0, 5 years ago)
  • cascade.py

    old new  
    7676                return _consuming_writer 
    7777            return start_response(status, headers, exc_info) 
    7878 
    79         length = int(environ.get('CONTENT_LENGTH', '0')) 
     79        length = int(environ.get('CONTENT_LENGTH') or 0) 
    8080        if length > 0: 
    8181            # We have to copy wsgi.input 
    8282            copy_wsgi_input = True