X-Forwarded-Port

This commit is contained in:
Kenneth Reitz
2012-02-20 13:29:14 -05:00
parent 9922fd76c9
commit f61dd74026
+3 -2
View File
@@ -40,7 +40,8 @@ ENV_HEADERS = (
'X-Forwarded-For',
'X-Heroku-Dynos-In-Use',
'X-Forwarded-For',
'X-Forwarded-Protocol'
'X-Forwarded-Protocol',
'X-Forwarded-Port'
)
@@ -85,7 +86,7 @@ def get_dict(*keys, **extras):
if not form.values().pop():
data = form.keys().pop()
form = None
if form:
nonflat_dict = form.to_dict(flat=False)
for k, v in nonflat_dict.items():