##// END OF EJS Templates
dirty fix for https working.
marcink -
r203:be6d8aad default
parent child Browse files
Show More
@@ -7,7 +7,6 b' from paste.deploy.converters import asbo'
7 from pylons.middleware import ErrorHandler, StatusCodeRedirect
7 from pylons.middleware import ErrorHandler, StatusCodeRedirect
8 from pylons.wsgiapp import PylonsApp
8 from pylons.wsgiapp import PylonsApp
9 from routes.middleware import RoutesMiddleware
9 from routes.middleware import RoutesMiddleware
10 from paste.auth.basic import AuthBasicHandler
11 from pylons_app.lib.simplehg import SimpleHg
10 from pylons_app.lib.simplehg import SimpleHg
12 from pylons_app.config.environment import load_environment
11 from pylons_app.config.environment import load_environment
13
12
@@ -34,6 +34,8 b' class SimpleHg(object):'
34 self.authenticate = AuthBasicAuthenticator(realm, authfunc)
34 self.authenticate = AuthBasicAuthenticator(realm, authfunc)
35
35
36 def __call__(self, environ, start_response):
36 def __call__(self, environ, start_response):
37 #dirty fix for https
38 environ['wsgi.url_scheme'] = 'https'
37 if not is_mercurial(environ):
39 if not is_mercurial(environ):
38 return self.application(environ, start_response)
40 return self.application(environ, start_response)
39 else:
41 else:
General Comments 0
You need to be logged in to leave comments. Login now