Skip to content

Commit

Permalink
Return a 404 error when static files aren't found
Browse files Browse the repository at this point in the history
  • Loading branch information
zorchenhimer committed Apr 14, 2018
1 parent 5808d6a commit 7207258
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func (s *Server) handler_static(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, fullPath)
} else {
fmt.Printf("[handler_static] 404 on file %q\n", fullPath)
http.NotFound(w, r)
}
}

Expand Down

0 comments on commit 7207258

Please sign in to comment.