Commits

Andriy Kornatskyy committed 24fb9ef

Fixed issue with empty CONTENT_LENGTH as supplied by wsgiref simple server.

Comments (0)

Files changed (1)

demos/template/src/tracing.py

     ts = os.times()
     e = request.environ
     r = resource.getrusage(resource.RUSAGE_SELF)
-    if 'CONTENT_LENGTH' in e:
+    if 'CONTENT_LENGTH' in e and e['CONTENT_LENGTH']:
         form = filter_names(request.form, ignore=(
             'password',
             'confirm_password'