From e670ec27bdf39ed5ee8b18aa621cb0508217f4ff Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Thu, 6 Nov 2014 15:01:46 -0500 Subject: [PATCH] HeartbeatHandler: Remove unnecessary call to write(). --- docs/history.rst | 2 ++ sprockets/handlers/heartbeat/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/history.rst b/docs/history.rst index 3245ca8..ad9ab0c 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -1,4 +1,6 @@ Version History --------------- +- 0.1.1 [2014-11-06]: + - Make Tornado 3.x compatible. - 0.1.0 [2014-10-14] - Initial release diff --git a/sprockets/handlers/heartbeat/__init__.py b/sprockets/handlers/heartbeat/__init__.py index c951a8d..4c24dc2 100644 --- a/sprockets/handlers/heartbeat/__init__.py +++ b/sprockets/handlers/heartbeat/__init__.py @@ -8,7 +8,7 @@ import logging from tornado.web import RequestHandler -version_info = (0, 1, 0) +version_info = (0, 1, 1) __version__ = '.'.join(str(v) for v in version_info) LOGGER = logging.getLogger(__name__) @@ -23,7 +23,7 @@ class HeartbeatHandler(RequestHandler): """Respond with the health of our service.""" if not all(callback() for callback in callbacks): self.set_status(500) - self.write() + return self.set_status(204)