Skip to content

Commit

Permalink
Update internal/server/handlers.go
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio authored Oct 9, 2024
1 parent a8c835c commit 23cae82
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func (s *Server) showOrRender(w http.ResponseWriter, r *http.Request) {
if os.IsNotExist(err) {
s.printWarning("attempted to access non-existent path: %s", currentPath)
if s.CustomNotFoundPage != "" {
fmt.Fprintf(s.LogOutput, "%s %q -- custom %d \n", r.Method, r.RequestURI, http.StatusNotFound)
s.serveFile(s.CustomNotFoundPage, w, r)
return
}
Expand Down

0 comments on commit 23cae82

Please sign in to comment.