@@ -270,3 +270,15 @@ def test_regular_rewrites(host):
assert page.rc == 0
assert page.stdout == open("tests/data/php/optional/myindex.php").read().rstrip()
def test_http_header_overrides(host):
"""
Tests if headers are overridden by Nginx prior to hitting the PHP
application.
page = host.run('curl -H "Accept-Encoding: plain" https://parameters-optional.local/headers.myphp')
assert "Accept-Encoding: donotencode" in page.stdout.split("\n")