Fix regex.
This commit is contained in:
parent
b87a56623b
commit
821c0c91c8
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -128,7 +128,7 @@ func Files(c echo.Context) error {
|
||||||
ImageMatch := regexp.MustCompile("^image/.*")
|
ImageMatch := regexp.MustCompile("^image/.*")
|
||||||
VideoMatch := regexp.MustCompile("^video/.*")
|
VideoMatch := regexp.MustCompile("^video/.*")
|
||||||
JsonMatch := regexp.MustCompile("application/json")
|
JsonMatch := regexp.MustCompile("application/json")
|
||||||
TextMatch := regexp.MustCompile("^text/.*|application/octet-stream")
|
TextMatch := regexp.MustCompile("^text/.*")
|
||||||
|
|
||||||
for _, f := range filelist {
|
for _, f := range filelist {
|
||||||
filePath := "files/" + f.Name()
|
filePath := "files/" + f.Name()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue