From 05bdda036f59658ff924d1fabd4a5241ed09af37 Mon Sep 17 00:00:00 2001 From: Nicholas Ghobrial Date: Sat, 13 Jul 2019 01:18:29 -0400 Subject: [PATCH] Remove all uses of proxy_set_header Connection "upgrade" --- docs/configuration/ssl.md | 2 +- tests/unit/test_helper.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration/ssl.md b/docs/configuration/ssl.md index 63cb930c7..769ada806 100644 --- a/docs/configuration/ssl.md +++ b/docs/configuration/ssl.md @@ -139,7 +139,7 @@ server { proxy_pass http://{{ .APP }}; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; + proxy_set_header Connection $http_connection; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto; proxy_set_header X-Forwarded-For $http_x_forwarded_for; diff --git a/tests/unit/test_helper.bash b/tests/unit/test_helper.bash index d9e747382..818f8c6ef 100644 --- a/tests/unit/test_helper.bash +++ b/tests/unit/test_helper.bash @@ -312,7 +312,7 @@ server { proxy_pass http://{{ $.APP }}-{{ \$upstream_port }}; proxy_http_version 1.1; proxy_set_header Upgrade \$http_upgrade; - proxy_set_header Connection "upgrade"; + proxy_set_header Connection $http_connection; proxy_set_header Host \$http_host; proxy_set_header X-Forwarded-Proto \$scheme; proxy_set_header X-Forwarded-For \$remote_addr;