mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 14:10:52 -07:00
Fix API json encoding
This commit is contained in:
parent
48152c9ba3
commit
2d7fb82dd6
1 changed files with 2 additions and 2 deletions
|
@ -500,9 +500,9 @@ General optional parameters:
|
||||||
cherrypy.response.headers['Content-Type'] = 'application/json;charset=UTF-8'
|
cherrypy.response.headers['Content-Type'] = 'application/json;charset=UTF-8'
|
||||||
try:
|
try:
|
||||||
if self._api_debug:
|
if self._api_debug:
|
||||||
out = json.dumps(out, indent=4, sort_keys=True)
|
out = json.dumps(out, indent=4, sort_keys=True, ensure_ascii=False).encode('utf-8')
|
||||||
else:
|
else:
|
||||||
out = json.dumps(out)
|
out = json.dumps(out, ensure_ascii=False).encode('utf-8')
|
||||||
if self._api_callback is not None:
|
if self._api_callback is not None:
|
||||||
cherrypy.response.headers['Content-Type'] = 'application/javascript'
|
cherrypy.response.headers['Content-Type'] = 'application/javascript'
|
||||||
# wrap with JSONP call if requested
|
# wrap with JSONP call if requested
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue