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")