1. cherrypy
  2. CherryPy

Commits

Remi Delon  committed 1345c4f

Fixed bug in DecodingFilter

  • Participants
  • Parent commits 9b088d0
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/lib/filter/decodingfilter.py

View file
  • Ignore whitespace
 
     def afterRequestBody(self):
         for key, value in cpg.request.paramMap.items():
-            if key in cpg.request.filenameMap:
+            if cpg.request.filenameMap.get(key):
                 # This is a file being uploaded: skip it
                 continue
             if isinstance(value, list):
             else:
                 # value is a regular string: decode it
                 newValue = value.decode(self.encoding)
+            print "Decoded:", repr(key), repr(newValue)
             cpg.request.paramMap[key] = newValue