send application/x-protobuf instead of text/html

This commit is contained in:
Seth Schoen 2012-05-28 11:04:23 -07:00
parent 9ab1d41ea5
commit c607c0adbf

View file

@ -18,7 +18,7 @@ class index:
return "Hello, world! This server only accepts POST requests."
def POST(self):
web.header("Content-type", "text/html")
web.header("Content-type", "application/x-protobuf")
web.setcookie("chocolate", hmac("foo", "bar"),
secure=True) # , httponly=True)
m = chocolatemessage()