Fix regex.
This commit is contained in:
parent
b87a56623b
commit
821c0c91c8
2
main.go
2
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()
|
||||
|
Loading…
Reference in New Issue
Block a user