mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-31 01:38:08 -05:00
Quote property name in error.py's JSON api response.
This commit is contained in:
@@ -175,7 +175,7 @@ class ErrorController(RedditController):
|
||||
c.response.content = str(code)
|
||||
return c.response
|
||||
elif c.render_style == "api":
|
||||
c.response.content = "{error: %s}" % code
|
||||
c.response.content = "{\"error\": %s}" % code
|
||||
return c.response
|
||||
elif takedown and code == 404:
|
||||
link = Link._by_fullname(takedown)
|
||||
|
||||
Reference in New Issue
Block a user