<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi.</p>
<p>then one directive upward.</p>
<p><a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header">http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header</a></p>
<p>Cheers</p>
<p>aleks</p>
<p>Am 03-03-2017 06:00, schrieb tjlp@sina.com:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div>Hi,<br />
<div><br />
<div>What I mention is the header in response from backend server. Your answer about proxy_set_header is the "Connection" header in request.<br />
<div><br />
<div>Thanks<br />Liu Peng</div>
</div>
</div>
</div>
</div>
<div id="origbody">
<div style="background: #f2f2f2;">----- 原始邮件 -----<br />发件人:Aleksandar Lazic <al-nginx@none.at><br />收件人:nginx@nginx.org<br />抄送人:tjlp@sina.com<br />主题:Re: Issue about nginx removing the header "Connection" in HTTP response?<br />日期:2017年03月03日 06点25分</div>
<br /><br />Hi.<br />Am 01-03-2017 08:29, schrieb tjlp@sina.com:<br />> Hi, nginx guy,<br />> <br />> In our system, for some special requests, the upstream server will <br />> return a response which the header includes "Connection: Close".<br />> According to HTTP protocol, "Connection" is one-hop header.<br />> So, nginx will remove this header and the client can't do the business <br />> logic correctly.<br />> <br />> How to handle this scenario?<br />you mean something like this?<br />http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header<br /> If the value of a header field is an empty string then this field will <br />not be passed to a proxied server:<br /> proxy_set_header Connection "";<br />> Thanks<br />> Liu Peng<br />> _______________________________________________<br />> nginx mailing list<br />> nginx@nginx.org<br />> http://mailman.nginx.org/mailman/listinfo/nginx</div>
</blockquote>
</body></html>