Mercurial > kallithea
changeset 203:be6d8aaddbd1
dirty fix for https working.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 22 May 2010 22:40:12 +0200 |
parents | 3fd2af1ba5ea |
children | a8ea3ce3cdc4 |
files | pylons_app/config/middleware.py pylons_app/lib/simplehg.py |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pylons_app/config/middleware.py Sat May 22 20:51:54 2010 +0200 +++ b/pylons_app/config/middleware.py Sat May 22 22:40:12 2010 +0200 @@ -7,7 +7,6 @@ from pylons.middleware import ErrorHandler, StatusCodeRedirect from pylons.wsgiapp import PylonsApp from routes.middleware import RoutesMiddleware -from paste.auth.basic import AuthBasicHandler from pylons_app.lib.simplehg import SimpleHg from pylons_app.config.environment import load_environment
--- a/pylons_app/lib/simplehg.py Sat May 22 20:51:54 2010 +0200 +++ b/pylons_app/lib/simplehg.py Sat May 22 22:40:12 2010 +0200 @@ -34,6 +34,8 @@ self.authenticate = AuthBasicAuthenticator(realm, authfunc) def __call__(self, environ, start_response): + #dirty fix for https + environ['wsgi.url_scheme'] = 'https' if not is_mercurial(environ): return self.application(environ, start_response) else: