Skip to content

Commit 6b4a718

Browse files
committed
Update resources.py
1 parent 5b235db commit 6b4a718

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

qiita_pet/handlers/resources.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
from tornado.gen import coroutine, Task
32
from tornado.web import authenticated, HTTPError
43
import json
@@ -105,7 +104,7 @@ def post(self):
105104
"tcalc": tcalc, "tfail": tfail,
106105
"initial_load": False
107106
}
108-
self.write(json.dumps(response_data))
107+
self.write(json.dumps(response_data) + "\n")
109108

110109
except json.JSONDecodeError:
111110
self.set_status(400)
@@ -129,7 +128,7 @@ def post(self):
129128
"initial_load": False
130129
}
131130
self.set_status(200)
132-
self.write(json.dumps(response_data))
131+
self.write(json.dumps(response_data) + "\n")
133132
else:
134133
self.set_status(500)
135134
self.finish({"error": str(e)})

0 commit comments

Comments
 (0)