Skip to content

Commit

Permalink
Merge pull request #259 from askuy/feature/windowsembed
Browse files Browse the repository at this point in the history
fix windows 404 for static files
  • Loading branch information
askuy authored Mar 23, 2022
2 parents 055337e + b551aec commit aa3f501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/egin/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (e *EmbedWrapper) Open(name string) (fs.File, error) {
if filepath.Separator != '/' && strings.ContainsRune(name, filepath.Separator) {
return nil, errors.New("http: invalid character in file path")
}
fullName := filepath.Join(e.path, filepath.FromSlash(path.Clean("/"+name)))
fullName := path.Join(e.path, filepath.FromSlash(path.Clean("/"+name)))
file, err := e.embedFs.Open(fullName)
return file, err
}

0 comments on commit aa3f501

Please sign in to comment.