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: