From 775c0c1040e6a6622fec39d49b354bfa194a6998 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 30 Sep 2023 20:08:33 -0600 Subject: file serving refactor * do away with fs.FS usage in gemini, like the previous refactor in gopher * remove spartan code in contrib * standardize fsroot/urlroot string arguments to file serving handlers --- contrib/fs/file_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'contrib/fs/file_test.go') diff --git a/contrib/fs/file_test.go b/contrib/fs/file_test.go index 55e2a09..ce4d023 100644 --- a/contrib/fs/file_test.go +++ b/contrib/fs/file_test.go @@ -4,7 +4,6 @@ import ( "context" "io" "net/url" - "os" "testing" "github.com/stretchr/testify/assert" @@ -16,7 +15,7 @@ import ( ) func TestFileHandler(t *testing.T) { - handler := fs.GeminiFileHandler(os.DirFS("testdata")) + handler := fs.GeminiFileHandler("testdata", "") tests := []struct { url string -- cgit v1.2.3