Skip to content

Commit 3fa8f72

Browse files
committed
More description for X-Forwarded header in comments.
1 parent d5304e0 commit 3fa8f72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demo_pyramid/demo_pyramid/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def init_saml_auth(req):
1616

1717
def prepare_pyramid_request(request):
1818
## Uncomment this portion to set the request.scheme and request.server_port
19-
## based on the supplied `X-Forwarded` headers
19+
## based on the supplied `X-Forwarded` headers.
20+
## Useful for running behind reverse proxies or balancers.
2021
#
2122
# if 'X-Forwarded-Proto' in request.headers:
2223
# request.scheme = request.headers['X-Forwarded-Proto']

0 commit comments

Comments
 (0)