Merge pull request #537 from zitterbacke/patch-2

fix uri modul for JSON-escape quotation marks
should fix #121
This commit is contained in:
Brian Coca 2015-03-19 09:12:29 -04:00
commit 42d91951cf

View file

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