[Python-checkins] r77558 - tracker/instances/python-dev/lib/openid.py
martin.v.loewis
python-checkins at python.org
Sun Jan 17 01:15:08 CET 2010
Author: martin.v.loewis
Date: Sun Jan 17 01:15:08 2010
New Revision: 77558
Log:
Implement HTTP redirect.
Modified:
tracker/instances/python-dev/lib/openid.py
Modified: tracker/instances/python-dev/lib/openid.py
==============================================================================
--- tracker/instances/python-dev/lib/openid.py (original)
+++ tracker/instances/python-dev/lib/openid.py Sun Jan 17 01:15:08 2010
@@ -167,6 +167,9 @@
data = res.read()
conn.close()
+ if res.status in (301, 302, 303, 307):
+ return discover(res.msg.get('location'))
+
content_type = res.msg.gettype()
# Yadis 6.2.5 option 2 and 3: header includes x-xrds-location
More information about the Python-checkins
mailing list