Commit 86bbdd21 authored by Philipp Hörist's avatar Philipp Hörist

Encode resource with correct profile

Fixes #9465
parent 932377f5
......@@ -154,7 +154,7 @@ def parse_resource(resource):
"""
if resource:
try:
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