Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
abeltay committed Feb 5, 2018
1 parent 9124d8c commit 5c5b7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/fileserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func FileServerHandler(root string, notFound http.HandlerFunc) http.Handler {
}

func (h fileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
name := f.Root + path.Clean(r.URL.Path)
name := h.Root + path.Clean(r.URL.Path)
info, err := os.Stat(name)
if os.IsNotExist(err) || info.IsDir() {
h.NotFound(w, r)
Expand Down

0 comments on commit 5c5b7db

Please sign in to comment.