Commits

Stéphane Klein committed e47a3f3

Fix chunked transfert encoding issue

  • Participants
  • Parent commits b72c7fc

Comments (0)

Files changed (1)

paste/httpserver.py

                 content_length = int(self.headers.get('Content-Length', '0'))
             except ValueError:
                 content_length = 0
+
             if (
                 not hasattr(self.connection, 'get_context') and 
-                not (self.headers.get("Transfer-Encoding", "") == "chunked")
+                not (self.headers.get("transfer-encoding", "").lower() == "chunked")
             ):
                 ## @@: LimitedLengthFile is currently broken in connection
                 ## with SSL (sporatic errors that are diffcult to trace, but