comparison pylons_app/lib/simplehg.py @ 203:be6d8aaddbd1

dirty fix for https working.
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 22 May 2010 22:40:12 +0200
parents da59b7e07e3c
children
comparison
equal deleted inserted replaced
202:3fd2af1ba5ea 203:be6d8aaddbd1
32 #authenticate this mercurial request using 32 #authenticate this mercurial request using
33 realm = '%s %s' % (config['hg_app_name'], 'mercurial repository') 33 realm = '%s %s' % (config['hg_app_name'], 'mercurial repository')
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:
40 #=================================================================== 42 #===================================================================
41 # AUTHENTICATE THIS MERCURIAL REQUEST 43 # AUTHENTICATE THIS MERCURIAL REQUEST