Empty string is not a valid JSON object, so don't return them in HTTP responses.

This commit is contained in:
Erik Johnston 2014-09-04 18:09:17 +01:00
parent 250ee2ea7d
commit 982604fbf2
3 changed files with 7 additions and 7 deletions

View file

@ -70,7 +70,7 @@ class LoginFallbackRestServlet(RestServlet):
def on_GET(self, request):
# TODO(kegan): This should be returning some HTML which is capable of
# hitting LoginRestServlet
return (200, "")
return (200, {})
def _parse_json(request):