Commit b4f43acb authored by Philipp Hörist's avatar Philipp Hörist

Encode resource with correct profile

Fixes #9465
parent 6c2df541
......@@ -153,7 +153,7 @@ def parse_resource(resource):
if resource:
return resource.encode('Nickname').decode('utf-8')
return resource.encode('OpaqueString').decode('utf-8')
except UnicodeError:
raise InvalidFormat('Invalid character in resource.')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment