Skip to content

Commit

Permalink
fix superflous response
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Jul 12, 2019
1 parent 7094dd3 commit 79bf421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/server.go
Expand Up @@ -79,7 +79,7 @@ Disallow:`))
var b []byte
b, err = Asset(r.URL.Path[1:])
if err != nil {
http.Error(w, "file not found", 404)
err = fmt.Errorf("resource '%s' not found",r.URL.Path[1:])
return
}
var contentType string
Expand Down

0 comments on commit 79bf421

Please sign in to comment.