# HG changeset patch # User Marcin Kuzminski # Date 2012-07-09 01:38:18 # Node ID d24c70ec9312bce3f35f92d87ff47856ec7ef185 # Parent 4857ed50f498b48fdc809c8e06bf068915b04ad5 Fixed issue with gzipped streams for large git pushes. diff --git a/rhodecode/lib/middleware/simplegit.py b/rhodecode/lib/middleware/simplegit.py --- a/rhodecode/lib/middleware/simplegit.py +++ b/rhodecode/lib/middleware/simplegit.py @@ -30,6 +30,7 @@ import logging import traceback from dulwich import server as dulserver +from dulwich.web import LimitedInputFilter, GunzipFilter class SimpleGitUploadPackHandler(dulserver.UploadPackHandler): @@ -225,6 +226,7 @@ class SimpleGit(BaseVCSController): repo_name=repo_name, username=username, ) + app = GunzipFilter(LimitedInputFilter(app)) return app def __get_repository(self, environ):