Welcome! Log In Create A New Profile

Advanced

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

Aleksandar Lazic
March 02, 2017 05:26PM
Hi.
Am 01-03-2017 08:29, schrieb tjlp@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Issue about nginx removing the header "Connection" in HTTP response?

Anonymous User March 01, 2017 02:30AM

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

Aleksandar Lazic March 02, 2017 05:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 81
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready