comparison rhodecode/config/middleware.py @ 923:7e9c80b515af

fixed middleware for new https fixup
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 06 Jan 2011 19:28:20 +0100
parents a9158dfa05cc
children da5075ce681c
comparison
equal deleted inserted replaced
922:b2a70582bce3 923:7e9c80b515af
57 app = StatusCodeRedirect(app) 57 app = StatusCodeRedirect(app)
58 else: 58 else:
59 app = StatusCodeRedirect(app, [400, 401, 403, 404, 500]) 59 app = StatusCodeRedirect(app, [400, 401, 403, 404, 500])
60 60
61 #enable https redirets based on HTTP_X_URL_SCHEME set by proxy 61 #enable https redirets based on HTTP_X_URL_SCHEME set by proxy
62 app = HttpsFixup(app) 62 app = HttpsFixup(app, config)
63 63
64 # Establish the Registry for this application 64 # Establish the Registry for this application
65 app = RegistryManager(app) 65 app = RegistryManager(app)
66 66
67 if asbool(static_files): 67 if asbool(static_files):