mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Update renderers.py
This commit is contained in:
parent
f378f98a40
commit
a5d741aba4
|
@ -105,7 +105,7 @@ class JSONRenderer(BaseRenderer):
|
|||
|
||||
# We always fully escape \u2028 and \u2029 to ensure we output JSON
|
||||
# that is a strict javascript subset.
|
||||
# See: http://timelessrepo.com/json-isnt-a-javascript-subset
|
||||
# See: https://gist.github.com/damncabbage/623b879af56f850a6ddc
|
||||
ret = ret.replace('\u2028', '\\u2028').replace('\u2029', '\\u2029')
|
||||
return ret.encode()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user