Commits

Anonymous committed 1345c4f

Fixed bug in DecodingFilter

Comments (0)

Files changed (1)

cherrypy/lib/filter/decodingfilter.py

 
     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