Changeset - be6d8aaddbd1
[Not reviewed]
default
0 2 0
Marcin Kuzminski - 15 years ago 2010-05-22 22:40:12
marcin@python-works.com
dirty fix for https working.
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pylons_app/config/middleware.py
Show inline comments
 
@@ -7,7 +7,6 @@ from paste.deploy.converters import asbo
 
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
 

	
pylons_app/lib/simplehg.py
Show inline comments
 
@@ -34,6 +34,8 @@ class SimpleHg(object):
 
        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:
0 comments (0 inline, 0 general)