[web2py] Re: Always send a custom HTTP header with web2py responses

2015-07-15 Thread Saifuddin Rangwala
Yep thanks, I have created a ticket for the same. A good way of achieving this helps with better error handling. On Wed, Jul 15, 2015 at 8:02 PM, Anthony wrote: > There isn't an easy way to do it, so go ahead and open a ticket, but I > think you can do it by creating a custom error handler >

[web2py] Re: Always send a custom HTTP header with web2py responses

2015-07-15 Thread Anthony
There isn't an easy way to do it, so go ahead and open a ticket, but I think you can do it by creating a custom error handler (though will fail in case the error handler itself fails) or via external WSGI middleware

[web2py] Re: Always send a custom HTTP header with web2py responses

2015-07-15 Thread Massimo Di Pierro
Good point. Please open a ticket. There is no way to do this now. On Wednesday, 15 July 2015 01:52:55 UTC-5, Saifuddin Rangwala wrote: > > Hi, > > I would like to a custom http header "X-APP-VERSION" alongwith all > the web2py responses. > > For 200 OK I do it using code below in the mode