Thanks :) On Monday, November 5, 2012 1:16:32 PM UTC+2, Pietro Bertera wrote: > > Hi Dan, > > 2012/11/5 Dan Shechter <[email protected] <javascript:>>: > > > There is no built in way to add HTTP headers to the built in feature of > > servicing static pages of the /static folder > > I'm not a web.py guru, but looking the code seems that in order to add > custom headers on /static/ files you need to rewrite the do_GET() > method in WSGIHandler class (in httpserver.py). > > > The solution is to write my one code to serve static objects, and in > that > > code I can do whatever I choose to do. > > IMHO I think this is the convenient way. > > > The example you wrote is an example of how to correctly and manually > serve > > static objects, not using the automatic /static folder way. > > Yes, true > > Best regards, > > -- > Bertera Pietro > http://www.bertera.it >
-- You received this message because you are subscribed to the Google Groups "web.py" group. To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/f59Oup9hXtgJ. 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.
