From 821c0c91c8085ff38acfad86feb91fd5cd90376f Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 3 Mar 2024 11:18:28 +0100 Subject: [PATCH] Fix regex. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8c0f7fb..73241ac 100644 --- a/main.go +++ b/main.go @@ -128,7 +128,7 @@ func Files(c echo.Context) error { ImageMatch := regexp.MustCompile("^image/.*") VideoMatch := regexp.MustCompile("^video/.*") JsonMatch := regexp.MustCompile("application/json") - TextMatch := regexp.MustCompile("^text/.*|application/octet-stream") + TextMatch := regexp.MustCompile("^text/.*") for _, f := range filelist { filePath := "files/" + f.Name()