diff options
author | Wolfy-J <[email protected]> | 2019-01-10 11:53:16 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-01-10 11:53:16 +0300 |
commit | 35bd2c861daf7a3895dc9d99642b53f2107bf5bf (patch) | |
tree | a47f3ef674824e0138783d443bb6c0afb483314e /service/static/config_test.go | |
parent | d1532db3043a1038f287fe31d1f2537d37d4d3a9 (diff) |
always serve files
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) { |