Fixing the unicode issue in uri for EL6 platforms

Fixes #5869
reviewable/pr18780/r1
James Cammarata 11 years ago
parent 8aec47af89
commit 09eaa0c920

@ -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:

Loading…
Cancel
Save