Fixed nil logger pointer in rest endpoints

Closes #153
This commit is contained in:
2024-05-24 13:59:03 +02:00
parent e0e923822c
commit f2389a6e6a
5 changed files with 31 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ func (h *Handler) Exec() http.HandlerFunc {
w.Header().Set("Content-Type", "application/json")
req := internal.DownloadRequest{}
var req internal.DownloadRequest
if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)