diff --git a/shrlok/shrlok.py b/shrlok/shrlok.py index bc74927..f1ebd75 100644 --- a/shrlok/shrlok.py +++ b/shrlok/shrlok.py @@ -102,8 +102,8 @@ class Handler(socketserver.StreamRequestHandler): def write_text(data: bytes, title=None): content = "
{}".format(data.decode(errors="replace")) - html = HTML_TEMPLATE.format(title=title or "?", content=content).encode() - write_content(html) + html = HTML_TEMPLATE.format(title=title or "", content=content).encode() + return write_content(html) def write_content(data: bytes):