Commits

Ian Bicking  committed e4084f2

Fix http://trac.pythonpaste.org/pythonpaste/ticket/318 -- handle zero-length responses in gzip middleware

  • Participants
  • Parent commits e53144a

Comments (0)

Files changed (1)

File paste/gzipper.py

         response = GzipResponse(start_response, self.compress_level)
         app_iter = self.application(environ,
                                     response.gzip_start_response)
-        if app_iter:
+        if app_iter is not None:
             response.finish_response(app_iter)
 
         return response.write()