1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixing the unicode issue in uri for EL6 platforms

Fixes #5869
This commit is contained in:
James Cammarata 2014-02-25 13:03:20 -06:00
parent 5dfe16ee5a
commit cb79947054

View file

@ -298,7 +298,7 @@ def uri(module, url, dest, user, password, body, method, headers, redirects, soc
r.update(resp_redir)
r.update(resp)
try:
return r, unicode(content).encode('utf8'), dest
return r, unicode(content.decode('unicode_escape')), dest
except:
return r, content, dest
except httplib2.RedirectMissingLocation: