<div dir="ltr">Well, my problem is that I need these headers (I eat them from my module's header filter).<div>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?</div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 3:39 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<span class=""><br>
On Mon, Mar 16, 2015 at 03:32:30PM +0300, Marat Dakota wrote:<br>
<br>
> I also might have:<br>
><br>
> /location3 {<br>
>     proxy_pass <a href="https://www.blabla" target="_blank">https://www.blabla</a>;<br>
> }<br>
><br>
> In this case my subrequest has the response headers from www.blabla. This<br>
> means that the statement that there are no headers in subrequest responses<br>
> is not completely correct.<br>
<br>
</span>In either case headers returned to the client are ones returned by<br>
the main request.  Anything else, if present for some unrelated<br>
reasons, will be thrown away.<br>
<br>
[...]<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/" target="_blank">http://nginx.org/</a><br>
<br>
_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
</div></div></blockquote></div><br></div></div></div>