Re: 回复:Re: Issue about nginx removing the header "Connection" in HTTP response?

Aleksandar Lazic al-nginx at none.at
Fri Mar 3 08:19:44 UTC 2017


Hi. 

then one directive upward. 

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header


Cheers 

aleks 

Am 03-03-2017 06:00, schrieb tjlp at sina.com:

> Hi,
> 
> What I mention is the header in response from backend server. Your answer about proxy_set_header is the "Connection" header in request.
> 
> Thanks
> Liu Peng 
> 
> ----- 原始邮件 -----
> 发件人:Aleksandar Lazic <al-nginx at none.at>
> 收件人:nginx at nginx.org
> 抄送人:tjlp at sina.com
> 主题:Re: Issue about nginx removing the header "Connection" in HTTP response?
> 日期:2017年03月03日 06点25分 
> 
> Hi.
> Am 01-03-2017 08:29, schrieb tjlp at sina.com:
>> Hi, nginx guy,
>> 
>> In our system, for some special requests, the upstream server will 
>> return a response which the header includes "Connection: Close".
>> According to HTTP protocol, "Connection" is one-hop header.
>> So, nginx will remove this header and the client can't do the business 
>> logic correctly.
>> 
>> How to handle this scenario?
> you mean something like this?
> http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header
> If the value of a header field is an empty string then this field will 
> not be passed to a proxied server:
> proxy_set_header Connection "";
>> Thanks
>> Liu Peng
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170303/607acbc7/attachment.html>


More information about the nginx mailing list