This commit is contained in:
2
main.go
2
main.go
@@ -161,11 +161,9 @@ func main() {
|
|||||||
log.Printf("Request: %+v, fileName:%s, method: %s", pth, fileName, r.Method)
|
log.Printf("Request: %+v, fileName:%s, method: %s", pth, fileName, r.Method)
|
||||||
folder, err := app.GetOrSpawn(pth)
|
folder, err := app.GetOrSpawn(pth)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
||||||
w.WriteHeader(http.StatusNotFound)
|
w.WriteHeader(http.StatusNotFound)
|
||||||
w.Write([]byte(err.Error()))
|
w.Write([]byte(err.Error()))
|
||||||
return
|
return
|
||||||
|
|
||||||
}
|
}
|
||||||
if fileName == "" {
|
if fileName == "" {
|
||||||
authKey := r.Header.Get("Authorization")
|
authKey := r.Header.Get("Authorization")
|
||||||
|
|||||||
Reference in New Issue
Block a user