In gluon/http.py there is a function:
def to(self, responder, env=None):....
this is the last thing called by web2py before returning control to the web
server. Try print the content of headers to a file and see if the wrong
headers comes from web2py or it is replaced by apache.
On Saturday, 18 May 2013 06:25:11 UTC-5, Andriy wrote:
>
> Thank you for your answers.
>
> I have only code like this in some controllers:
> *import gluon.contenttype
> response.headers['Content-Type']=gluon.contenttype.contenttype('.js')*
>
> or like this when I need to export some data to file and download it:
> *from gluon.contenttype import contenttype
> response.headers['Content-Type'] = contenttype('.frm')
> response.headers['Content-disposition'] = 'attachment; filename=forum.frm'
> *
>
> I didn`t even know contenttype.py and streamer.py existed before
> yesterday, so I have not touched them or their variables.
> So I don`t know why I have (had) this thread race, or is it some bug in
> Apache or web2py.
>
> Also I do not have this problem with Rocket or Twisted server on my
> localhost. So I guess it makes Apache a suspect maybe.
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.