argument = default
return argument
+
+ def finish(self, chunk=None):
+ import motioneye
+
+ self.set_header('Server', 'motionEye/%s' % motioneye.VERSION)
+ RequestHandler.finish(self, chunk=chunk)
def render(self, template_name, content_type='text/html', **context):
self.set_header('Content-Type', content_type)
admin_username=config.get_main().get('@admin_username'),
old_motion=config.is_old_motion(),
has_motion=bool(motionctl.find_motion()))
+
+ def head(self):
+ self.finish()
class ConfigHandler(BaseHandler):