No headers filter for a subrequest

Marat Dakota dakota at brokenpipe.ru
Mon Mar 16 13:11:04 UTC 2015


But I might copy-paste the code from ngx_http_headers_filter() to my header
filter, right? Or something will blow up eventually?

On Mon, Mar 16, 2015 at 4:00 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:

> Hello!
>
> On Mon, Mar 16, 2015 at 03:48:45PM +0300, Marat Dakota wrote:
>
> > Well, my problem is that I need these headers (I eat them from my
> module's
> > header filter).
> > I use subrequests for API calls. Does this mean that subrequests are the
> > wrong way to do so? Do I need to use upstreams instead?
>
> You can use/test headers that are already present in a response.
> But the headers filter module won't add additional headers as it's
> goal is to add headers visible in a response.
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150316/dc928ce0/attachment-0001.html>


More information about the nginx-devel mailing list