Change CASE_SENSITIVE_PATH default to false

A default of true is risky when protecting assets by matching base path.
It's not obvious that protecting /foo/ will allow /Foo/ through, and if
accessing static files on a case-insensitive file system... that's no
good. So the default is now to be case-INsensitive when matching paths.
This commit is contained in:
Matthew Holt
2017-10-08 22:19:35 -06:00
parent cccfe3b4ef
commit b0d9c058cc
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func TestPathCaseSensitiveEnv(t *testing.T) {
{"0", false},
{"false", false},
{"true", true},
{"", true},
{"", false},
}
for i, test := range tests {