We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6385fb commit 707fd2aCopy full SHA for 707fd2a
demo_pyramid/demo_pyramid/views.py
@@ -19,6 +19,8 @@ def prepare_pyramid_request(request):
19
20
if 'X-Forwarded-Proto' in request.headers:
21
request.scheme = request.headers['X-Forwarded-Proto']
22
+ if 'X-Forwarded-Port' in request.headers:
23
+ request.server_port = int(request.headers['X-Forwarded-Port'])
24
25
return {
26
'https': 'on' if request.scheme == 'https' else 'off',
0 commit comments