diff options
Diffstat (limited to 'service/static/config_test.go')
-rw-r--r-- | service/static/config_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/service/static/config_test.go b/service/static/config_test.go index e3fa8d16..0221e116 100644 --- a/service/static/config_test.go +++ b/service/static/config_test.go @@ -29,10 +29,10 @@ func Test_Config_Hydrate_Error(t *testing.T) { func TestConfig_Forbids(t *testing.T) { cfg := Config{Forbid: []string{".php"}} - assert.True(t, cfg.Forbids("index.php")) - assert.True(t, cfg.Forbids("index.PHP")) - assert.True(t, cfg.Forbids("phpadmin/index.bak.php")) - assert.False(t, cfg.Forbids("index.html")) + assert.True(t, cfg.AlwaysForbid("index.php")) + assert.True(t, cfg.AlwaysForbid("index.PHP")) + assert.True(t, cfg.AlwaysForbid("phpadmin/index.bak.php")) + assert.False(t, cfg.AlwaysForbid("index.html")) } func TestConfig_Valid(t *testing.T) { |