mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-11-20 08:04:55 +00:00
add tests and fix minor bugs
This commit is contained in:
@@ -53,9 +53,7 @@ func (e mainEnv) getUserRequest(w http.ResponseWriter, r *http.Request, ps httpr
|
||||
}
|
||||
requestInfo, err := e.db.getRequest(request)
|
||||
if err != nil {
|
||||
fmt.Printf("%d access denied for: %s\n", http.StatusForbidden, request)
|
||||
w.WriteHeader(http.StatusForbidden)
|
||||
w.Write([]byte("Access denied"))
|
||||
returnError(w, r, "internal error", 405, err, nil)
|
||||
return
|
||||
}
|
||||
if len(requestInfo) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user