X-Git-Url: https://code.kerkeslager.com/?p=fwx;a=blobdiff_plain;f=main.py;fp=main.py;h=d7ea725b73787715fa5607d03971d19c97d87e07;hp=2fa7191e9406d128546dfe2f8ac8cfd85648ce26;hb=bae515833a10b81e1c8f7deb1f7a1320c2a09de1;hpb=8b491e50b5a554643a068f66f7257d38c6ac7e7c diff --git a/main.py b/main.py index 2fa7191..d7ea725 100644 --- a/main.py +++ b/main.py @@ -2,9 +2,8 @@ import phial def handler(request): return phial.Response( - status='200 OK', - headers=[('Content-Type', 'text/plain')], - content=[b'Hello, world\n'], + content_type='text/plain', + content='Hello, world\n', ) app = phial.App(handler)