Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Fix encoding of namespace uris.
Browse files Browse the repository at this point in the history
Namespace for openid is usually unicode type, but it is not encoded to string in response.
  • Loading branch information
ziima committed Dec 12, 2011
1 parent abd15ee commit 5095fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openid/message.py
Expand Up @@ -273,7 +273,7 @@ def toPostArgs(self):
ns_key = 'openid.ns'
else:
ns_key = 'openid.ns.' + alias
args[ns_key] = ns_uri
args[ns_key] = oidutil.toUnicode(ns_uri).encode('UTF-8')

for (ns_uri, ns_key), value in self.args.iteritems():
key = self.getKey(ns_uri, ns_key)
Expand Down

0 comments on commit 5095fd1

Please sign in to comment.