Skip to content

Commit 92e26b4

Browse files
committed
fix set stauts error
1 parent c9d23df commit 92e26b4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = (0, 8, 0)
1+
VERSION = (0, 8, 1)
22

33
__version__ = '.'.join(map(str, VERSION))

acedatacloud_scaffold/handlers/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
class BaseHandler(RequestHandler, LogMixin):
1313

1414
def write_json(self, data, status=200, headers={}):
15-
if not self._status_code:
16-
self.set_status(status)
15+
self.clear()
16+
self.set_status(status)
1717
self.set_header('Content-Type', 'application/json')
1818
for key, value in headers.items():
1919
self.set_header(key, value)

0 commit comments

Comments
 (0)