r83311 - tracker/instances/python-dev/lib/openid2rp.py
Author: martin.v.loewis Date: Sat Jul 31 01:49:00 2010 New Revision: 83311 Log: Incorporate upstream fixes. Modified: tracker/instances/python-dev/lib/openid2rp.py Modified: tracker/instances/python-dev/lib/openid2rp.py ============================================================================== --- tracker/instances/python-dev/lib/openid2rp.py (original) +++ tracker/instances/python-dev/lib/openid2rp.py Sat Jul 31 01:49:00 2010 @@ -146,7 +146,10 @@ def do_link(self, attrs): attrs = dict(attrs) - self.links[attrs['rel']] = attrs['href'] + try: + self.links[attrs['rel']] = attrs['href'] + except KeyError: + pass def do_meta(self, attrs): attrs = dict(attrs) @@ -457,7 +460,7 @@ def _prepare_response(response): if isinstance(response, str): - return cgi.parse_qs(response) + return cgi.parse_qs(response, keep_blank_values=True) # backwards compatibility: allow caller to pass parse_qs result # already pass
participants (1)
-
martin.v.loewis