From 43f38466caa6a3e10ed5b3e84bd795026028bad3 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Wed, 18 Sep 2024 13:17:37 +0200
Subject: [PATCH] OZG-6730 Anpassung get file response content type

---
 internal/server/handler.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/server/handler.go b/internal/server/handler.go
index f0e0e05..ba6bfb6 100644
--- a/internal/server/handler.go
+++ b/internal/server/handler.go
@@ -252,7 +252,7 @@ func fetchFileFromGrpc(ctx context.Context, fileId string, grpcAddress string) (
 }
 
 func writeMultipartResponse(w http.ResponseWriter, fileBuffer *bytes.Buffer) error {
-	w.Header().Set(contentTypeHeaderKey, "multipart/form-data")
+	w.Header().Set(contentTypeHeaderKey, "application/octet-stream")
 	w.Header().Set(contentDispositionHeaderKey, `attachment; filename="file"`)
 	w.WriteHeader(http.StatusOK)
 
-- 
GitLab