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

Encode resource with correct profile

Fixes #9465
parent 6c2df541
Pipeline #2825 passed with stages
in 4 minutes and 39 seconds
...@@ -153,7 +153,7 @@ def parse_resource(resource): ...@@ -153,7 +153,7 @@ def parse_resource(resource):
""" """
if resource: if resource:
try: try:
return resource.encode('Nickname').decode('utf-8') return resource.encode('OpaqueString').decode('utf-8')
except UnicodeError: except UnicodeError:
raise InvalidFormat('Invalid character in resource.') 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