diff options
Diffstat (limited to 'modules/caddyhttp/fileserver/staticfiles_test.go')
-rw-r--r-- | modules/caddyhttp/fileserver/staticfiles_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/caddyhttp/fileserver/staticfiles_test.go b/modules/caddyhttp/fileserver/staticfiles_test.go index bd0370518..1f9232206 100644 --- a/modules/caddyhttp/fileserver/staticfiles_test.go +++ b/modules/caddyhttp/fileserver/staticfiles_test.go @@ -155,6 +155,12 @@ func TestFileHidden(t *testing.T) { expect: true, }, { + inputShow: []string{"/foo"}, + inputHide: nil, + inputPath: "/", + expect: false, + }, + { inputShow: []string{"*.txt"}, inputHide: []string{"/foo"}, inputPath: "/foo/bar.txt", |