2009/4/28 Monty808 <[email protected]>: > > Hi, > > On the top of a request....I want to return web.header("Content- > Type","HTTP/1.0 200 OK"). > > Did I do it right?
"HTTP/1.0 200 OK" is not Content-Type. If you want to set status, you can do it like this: web.ctx.status = "200 OK" But, "200 OK" is the default status and you don't have to set it explicitly. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
