Mercurial > kallithea
diff kallithea/lib/middleware/simplegit.py @ 4448:8e26c46e9abe
https: introduce https_fixup config setting to enable the special https hacks
Without https_fixup, correctly configured WSGI systems work correctly.
The https_fixup middleware will only be loaded when enabled in the configuration.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 12 Aug 2014 13:08:23 +0200 |
parents | f373f182b756 |
children | dacdea9fda2a |
line wrap: on
line diff
--- a/kallithea/lib/middleware/simplegit.py Tue Aug 12 13:08:23 2014 +0200 +++ b/kallithea/lib/middleware/simplegit.py Tue Aug 12 13:08:23 2014 +0200 @@ -66,7 +66,7 @@ def _handle_request(self, environ, start_response): if not is_git(environ): return self.application(environ, start_response) - if not self._check_ssl(environ, start_response): + if not self._check_ssl(environ): return HTTPNotAcceptable('SSL REQUIRED !')(environ, start_response) ip_addr = self._get_ip_addr(environ)