[dev] Set-Cookie and Content-Disposition in upstream.c
    Igor Sysoev 
    is at rambler-co.ru
       
    Wed Dec 12 10:59:59 MSK 2007
    
    
  
On Tue, Dec 11, 2007 at 09:02:54PM +0100, Manlio Perillo wrote:
> I'm not sure to understand this code in ngx_http_upstream.c:
> 
>     { ngx_string("Set-Cookie"),
>                  ngx_http_upstream_ignore_header_line, 0,
>                  ngx_http_upstream_copy_header_line, 0, 1 },
> 
>     { ngx_string("Content-Disposition"),
>                  ngx_http_upstream_ignore_header_line, 0,
>                  ngx_http_upstream_copy_header_line, 0, 1 },
> 
> 
> Isn't this code superfluous?
The first function processes specially a header line just after
it is copyed to r->upstream->headers_in
ngx_http_upstream_ignore_header_line() does nothing special
The second fucntion processes/copies a header line from
r->upstream->headers_in to r->headers_out
-- 
Igor Sysoev
http://sysoev.ru/en/
    
    
More information about the nginx
mailing list