about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-15 23:31:02 +0100
committerEmile <hanemile@protonmail.com>2020-03-15 23:31:02 +0100
commitf41c2acbc5765c51d3a9e05131fdde21ee5eb612 (patch)
tree90771f28fa861aa830946c2c00d7f96f4581f694
parent21d44c1249f423b75edac087e4e52c00092e70f7 (diff)
filter?
-rw-r--r--src/http/http.go2
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
 		}