diff options
Diffstat (limited to 'modules/caddyhttp/fileserver/matcher.go')
| -rw-r--r-- | modules/caddyhttp/fileserver/matcher.go | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/modules/caddyhttp/fileserver/matcher.go b/modules/caddyhttp/fileserver/matcher.go index 475a9ee..c103b03 100644 --- a/modules/caddyhttp/fileserver/matcher.go +++ b/modules/caddyhttp/fileserver/matcher.go @@ -19,7 +19,6 @@ import (  	"net/http"  	"os"  	"path" -	"path/filepath"  	"strings"  	"time" @@ -286,7 +285,7 @@ func strictFileExists(file string) (os.FileInfo, bool) {  		// https://stackoverflow.com/a/12518877/1048862  		return nil, false  	} -	if strings.HasSuffix(file, string(filepath.Separator)) { +	if strings.HasSuffix(file, separator) {  		// by convention, file paths ending  		// in a path separator must be a directory  		return stat, stat.IsDir() | 
