diff options
author | Emile <hanemile@protonmail.com> | 2020-03-15 23:31:02 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-03-15 23:31:02 +0100 |
commit | f41c2acbc5765c51d3a9e05131fdde21ee5eb612 (patch) | |
tree | 90771f28fa861aa830946c2c00d7f96f4581f694 | |
parent | 21d44c1249f423b75edac087e4e52c00092e70f7 (diff) |
filter?
-rw-r--r-- | src/http/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/http.go b/src/http/http.go index 252156b..8f49284 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -87,7 +87,6 @@ func pathHandler(w http.ResponseWriter, r *http.Request) { files, err := ioutil.ReadDir(requestURI) if err != nil { logrus.Warn(err) - w.WriteHeader(http.StatusInternalServerError) return } @@ -99,6 +98,7 @@ func pathHandler(w http.ResponseWriter, r *http.Request) { logrus.Tracef("f: %s", f.Name()) if filterIsValid(f.Name()) == false { + logrus.Tracef("NOPE") continue } |