Commits

Andriy Kornatskyy  committed 24fb9ef

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

  • Participants
  • Parent commits 049e699

Comments (0)

Files changed (1)

File 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'