It's possible to combine multiple types in a single module source, and yes, it's very well possible to combine a first_try with a filter module. Since you're rewriting the path, it might be possible to use a last_resort module instead of a combined first_try and filter module. A last_resort module is only triggered for non-existing paths, so you can decide in your code whether or not you wish to process the request, and return the proper result in one go.
Regards, Arjan -----Oorspronkelijk bericht----- Van: Michael Stenitzer [mailto:[email protected]] Verzonden: Monday, May 03, 2010 11:41 AM Aan: [email protected] Onderwerp: Re: how to unset content-disposition header On Mon, May 3, 2010 at 11:19 AM, Martin Stjernholm <[email protected]> wrote: > Michael Stenitzer <[email protected]> wrote: > >> works as intended so far, as long as i do not encounter a 404. then my >> 404-page will be sent with the content-disposition header as well. >> naturally this is not what i'm intending. and i can't find a way to >> unset the header. i tried it with the <header /> element but that >> seems to be ignored and not make it to the client. > > <header> can only add headers, not remove them. That could be changed, > but if I were in your shoes I think I'd prefer to set the header only > when I actually want it set, so I won't miss places where it needs to be > unset again. You can do that if you let your module act as a filter > module too. > i've used the first try module because i'm rewriting the path (like an internal redirect): /forcedownload/somepath -> /somepath so can a module combine a first try with an last try (filter)? i could then set the header only if my rewrite-flag is set and the return-code is 200. /michael __________________________________________________________ Deze e-mail en de inhoud is vertrouwelijk en uitsluitend bestemd voor de geadresseerde(n). Indien u niet de geadresseerde bent van deze e-mail verzoeken wij u dit direct door te geven aan de verzender door middel van een reply e-mail en de ontvangen e-mail uit uw systemen te verwijderen. Als u geen geadresseerde bent, is het niet toegestaan om kennis te nemen van de inhoud, deze te kopieren, te verspreiden, bekend te maken aan derden noch anderszins te gebruiken. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please notify us immediately if you have received it in error by reply e-mail and then delete this message from your system. __________________________________________________________
