correct get
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 29s

This commit is contained in:
matst80
2025-05-16 07:24:00 +02:00
parent d65c9f6998
commit 486781bc5d

View File

@@ -190,7 +190,7 @@ func main() {
w.Header().Set("Cache-Control", "public; max-age=60")
w.Header().Set("Content-Disposition", "attachment; filename=\""+fileName+"\"")
w.WriteHeader(http.StatusOK)
json.NewEncoder(w).Encode(content)
io.Copy(w, content)
} else {
defer r.Body.Close()
authKey := r.Header.Get("Authorization")