mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Update fix for API response header for JSON content type and the return of JSONP data to updated package as listed in hacks.txt.
This commit is contained in:
parent
2f266a4b5f
commit
4a9ee3fe62
2 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
* Update Tornado webserver to 4.2.dev1 (609dbb9)
|
* Update Tornado webserver to 4.2.dev1 (609dbb9)
|
||||||
* Update change to suppress reporting of Tornado exception error 1 to updated package as listed in hacks.txt
|
* Update change to suppress reporting of Tornado exception error 1 to updated package as listed in hacks.txt
|
||||||
|
* Update fix for API response header for JSON content type and the return of JSONP data to updated package as listed in hacks.txt
|
||||||
* Change network names to only display on top line of Day by Day layout on Episode View
|
* Change network names to only display on top line of Day by Day layout on Episode View
|
||||||
* Reposition country part of network name into the hover over in Day by Day layout
|
* Reposition country part of network name into the hover over in Day by Day layout
|
||||||
* Add ToTV provider
|
* Add ToTV provider
|
||||||
|
|
|
@ -694,7 +694,10 @@ class RequestHandler(object):
|
||||||
message += ". Lists not accepted for security reasons; see http://www.tornadoweb.org/en/stable/web.html#tornado.web.RequestHandler.write"
|
message += ". Lists not accepted for security reasons; see http://www.tornadoweb.org/en/stable/web.html#tornado.web.RequestHandler.write"
|
||||||
raise TypeError(message)
|
raise TypeError(message)
|
||||||
if isinstance(chunk, dict):
|
if isinstance(chunk, dict):
|
||||||
chunk = escape.json_encode(chunk)
|
if 'unwrap_json' in chunk:
|
||||||
|
chunk = chunk['unwrap_json']
|
||||||
|
else:
|
||||||
|
chunk = escape.json_encode(chunk)
|
||||||
self.set_header("Content-Type", "application/json; charset=UTF-8")
|
self.set_header("Content-Type", "application/json; charset=UTF-8")
|
||||||
chunk = utf8(chunk)
|
chunk = utf8(chunk)
|
||||||
self._write_buffer.append(chunk)
|
self._write_buffer.append(chunk)
|
||||||
|
|
Loading…
Reference in a new issue