> > I know, but it's quite an undocumented feature ....
I agree this could be documented (and handled) better -- I was just trying to offer a current workaround. > I guess I spoke from my bad english, but actually I was proposing to > modify stream_file_or_304_or_206 to check if headers set in the method are > yet defined before overwriting them. > Sounds reasonable. Though that still wouldn't help with standard static file serving (i.e., when specifying "static" as the controller) because web2py serves static files before hitting the app code at all (so no opportunity for the app to set any headers). Anthony

