Reputation: 251
I'm trying to proxy_pass_header Connection;
to my node.js server.
But my response header getting overwritten Connection : keep-alive
Even when I explicitly changed the Connection : close
.
What I'm doing wrong?
Upvotes: 0
Views: 1364
Reputation: 146510
That is because you have nginx in front and that will respond based on its own settings. You should use below directive in your nginx conf if you don't want to keep connection alive
keepalive_timeout 0;
Upvotes: 1