Skip to content

Commit

Permalink
fix: only use unix-style paths for embedded assets
Browse files Browse the repository at this point in the history
  • Loading branch information
b1naryth1ef committed Jan 9, 2022
1 parent 30d03d3 commit d7cffbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (h *httpServer) serveEmbeddedFile(path string, w http.ResponseWriter, r *ht
fileName := filepath.Base(path)
http.ServeContent(w, r, fileName, time.Now(), bytes.NewReader(contents))
} else {
f, err := sneaker.Static.ReadFile(filepath.Join("dist", path))
f, err := sneaker.Static.ReadFile("dist/" + path)
if err != nil {
http.Error(w, "Not Found", http.StatusNotFound)
return
Expand Down

0 comments on commit d7cffbc

Please sign in to comment.