From 2ddeb9b514a08d36cc4b421f1cca671ced4bc91a Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:28:00 +0200 Subject: [PATCH] [chore] Add envparsing test for advanced-header-filter-mode (#3051) --- test/envparsing.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/envparsing.sh b/test/envparsing.sh index 66250c5af..a744717a4 100755 --- a/test/envparsing.sh +++ b/test/envparsing.sh @@ -11,7 +11,7 @@ EXPECT=$(cat << "EOF" "accounts-registration-open": true, "advanced-cookies-samesite": "strict", "advanced-csp-extra-uris": [], - "advanced-header-filter-mode": "", + "advanced-header-filter-mode": "block", "advanced-rate-limit-exceptions": [ "192.0.2.0/24", "127.0.0.1/32" @@ -285,6 +285,7 @@ GTS_ADVANCED_RATE_LIMIT_REQUESTS=6969 \ GTS_ADVANCED_SENDER_MULTIPLIER=-1 \ GTS_ADVANCED_THROTTLING_MULTIPLIER=-1 \ GTS_ADVANCED_THROTTLING_RETRY_AFTER='10s' \ +GTS_ADVANCED_HEADER_FILTER_MODE='block' \ GTS_REQUEST_ID_HEADER='X-Trace-Id' \ go run ./cmd/gotosocial/... --config-path internal/config/testdata/test.yaml debug config)