From 486781bc5dcfe2b21cf867b1bb09717de93528f4 Mon Sep 17 00:00:00 2001 From: matst80 Date: Fri, 16 May 2025 07:24:00 +0200 Subject: [PATCH] correct get --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 21c766c..f221ca6 100644 --- a/main.go +++ b/main.go @@ -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")