Permalink
Browse files

Fix encoding of namespace uris.

Namespace for openid is usually unicode type, but it is not encoded to string in response.
  • Loading branch information...
1 parent abd15ee commit 5095fd1a072a092794f6a867820d8f588b239efb @ziima ziima committed Dec 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 openid/message.py
View
@@ -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)

0 comments on commit 5095fd1

Please sign in to comment.