summaryrefslogtreecommitdiff
path: root/test/envparsing.sh
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-06-28 15:28:00 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-28 15:28:00 +0200
commit2ddeb9b514a08d36cc4b421f1cca671ced4bc91a (patch)
treeaa8db9968f54601c598784e8ed50027870882ac8 /test/envparsing.sh
parent[docs] Tidy up API auth docs a little bit (#3050) (diff)
downloadgotosocial-2ddeb9b514a08d36cc4b421f1cca671ced4bc91a.tar.xz
[chore] Add envparsing test for advanced-header-filter-mode (#3051)
Diffstat (limited to 'test/envparsing.sh')
-rwxr-xr-xtest/envparsing.sh3
1 files changed, 2 insertions, 1 deletions
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)