Skip to content

Commit 55f6a5b

Browse files
committed
expect httpbingo.org as header now due to host rewrite
1 parent 7d0d780 commit 55f6a5b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/integration/test_integration.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,14 @@ cat downloaded2.whl | $SHASUM -c downloaded2.hash
164164
VERIFIED5=$?
165165
rm downloaded2.whl downloaded2.hash
166166

167+
# Without --rewrite-host-header we will receive localhost:<port> as host header back in response
168+
# read -r -d '' REVERSE_PROXY_RESPONSE << EOM
169+
# "localhost:$PROXY_PY_PORT"
170+
# EOM
171+
172+
# With --rewrite-host-header we will receive httpbingo.org as host header back in response
167173
read -r -d '' REVERSE_PROXY_RESPONSE << EOM
168-
"localhost:$PROXY_PY_PORT"
174+
"httpbingo.org"
169175
EOM
170176

171177
echo "[Test Reverse Proxy Plugin]"

0 commit comments

Comments
 (0)