def setheader():
web.header("Content-Type","text/html; charset=utf-8")
web.loadhooks['setheader'] = setheader
On 1 мар, 18:46, Alex Greif <[EMAIL PROTECTED]> wrote:
> Hi,
> I just started to use webpy and have the following
> question:
> my requests are forwarded to the webpy app
> from an apache through the mod_wsgi. I realize that the
> response header (content-type) is not set
> automatically. So I have to set in every GET method the
> header with web.header(). Is there a way to define the
> header contents in one global place or do I have to set
> it in every GET methods?
>
> Thanks,
> Alex.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---