summaryrefslogtreecommitdiff
path: root/tests/lighttpd.conf
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-12-22 12:32:22 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2017-01-31 14:36:15 -0500
commit4d92366ab21d4b4ae6f4781b9121d6683e0bc909 (patch)
treeadfff59fe275138e0ab0744d46a208ca25a5f772 /tests/lighttpd.conf
parentd171be31ae420b415aec1f2e6e33ec4a7570b178 (diff)
downloadlighttpd1.4-4d92366ab21d4b4ae6f4781b9121d6683e0bc909.tar.gz
lighttpd1.4-4d92366ab21d4b4ae6f4781b9121d6683e0bc909.zip
[mod_setenv] directives to overwrite/remove hdrs (fixes #650, fixes #2295)
directives to set value, rather than append values to headers, env setenv.set-request-header setenv.set-response-header setenv.set-environment These directives take precedence over the setenv.add-* counterparts Set a blank value for request or response header to remove the header (blank value in environment will be set as the value; not removed) setenv.*-environment is now deferred to handle_request_env hook. setenv.*-response-header is now processed in handle_response_start hook. x-ref: "setenv.add-or-replace-response-header" https://redmine.lighttpd.net/issues/650 "set-request-header or remove-request-header support for mod_setenv" https://redmine.lighttpd.net/issues/2295
Diffstat (limited to 'tests/lighttpd.conf')
-rw-r--r--tests/lighttpd.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf
index ed4ff370..3fd8b0da 100644
--- a/tests/lighttpd.conf
+++ b/tests/lighttpd.conf
@@ -83,12 +83,21 @@ setenv.add-environment = (
"TRAC_ENV" => "tracenv",
"SETENV" => "setenv",
)
+setenv.set-environment = (
+ "NEWENV" => "newenv",
+)
setenv.add-request-header = (
"FOO" => "foo",
)
+setenv.set-request-header = (
+ "FOO2" => "foo2",
+)
setenv.add-response-header = (
"BAR" => "foo",
)
+setenv.set-response-header = (
+ "BAR2" => "bar2",
+)
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"