##// END OF EJS Templates
middleware: use config consistently in https_fixup...
Mads Kiilerich -
r8715:2065fe5b stable
parent child Browse files
Show More
@@ -26,7 +26,6 b' Original author and date, and relevant c'
26 """
26 """
27
27
28
28
29 import kallithea
30 from kallithea.lib.utils2 import asbool
29 from kallithea.lib.utils2 import asbool
31
30
32
31
@@ -62,7 +61,7 b' class HttpsFixup(object):'
62 proto = 'https'
61 proto = 'https'
63 else:
62 else:
64 # get protocol from configured WSGI environment variable
63 # get protocol from configured WSGI environment variable
65 url_scheme_variable = kallithea.CONFIG.get('url_scheme_variable')
64 url_scheme_variable = self.config.get('url_scheme_variable')
66 if url_scheme_variable:
65 if url_scheme_variable:
67 proto = environ.get(url_scheme_variable)
66 proto = environ.get(url_scheme_variable)
68
67
General Comments 0
You need to be logged in to leave comments. Login now