cleanup
Some checks failed
Build and Publish / BuildAndDeploy (push) Failing after 31s

This commit is contained in:
matst80
2025-05-15 19:55:45 +02:00
parent 42c1a8203c
commit 1fb2f490b7

View File

@@ -161,11 +161,11 @@ func main() {
log.Printf("Request: %+v, fileName:%s, method: %s", pth, fileName, r.Method)
folder, err := app.GetOrSpawn(pth)
if err != nil {
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
w.WriteHeader(http.StatusNotFound)
w.Write([]byte(err.Error()))
return
}
}
if fileName == "" {
authKey := r.Header.Get("Authorization")
@@ -210,7 +210,6 @@ func main() {
w.WriteHeader(http.StatusCreated)
}
}
w.WriteHeader(http.StatusOK)
})
if err := http.ListenAndServe(":8080", mux); err != nil {
panic(err)