diff --git a/tapas/handler.py b/tapas/handler.py index 45576f2..d02cbdf 100644 --- a/tapas/handler.py +++ b/tapas/handler.py @@ -15,6 +15,8 @@ def handle(req): "author": "bat", } """ + if not req: + return "Foo", 200, {"Content-Type": "text/plain"} try: args = loads(req) except Exception: @@ -25,7 +27,7 @@ def handle(req): c.image.save(byte_arr, format="JPEG") return ( - f'', + f'', 200, {"Content-Type": "text/html"}, )