From 33668849650dfa7eb14fe916f569c41b6442833c Mon Sep 17 00:00:00 2001 From: ivanszabo Date: Sun, 6 Apr 2025 19:34:12 +0200 Subject: [PATCH] =?UTF-8?q?Program=20let=C3=B6lt=C3=A9s=20backend=20zs?= =?UTF-8?q?=C3=ADr!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WorkFlowCheck.API/Controllers/SyncController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/WorkFlowCheck.API/Controllers/SyncController.cs b/src/WorkFlowCheck.API/Controllers/SyncController.cs index b54015a..e54fc19 100644 --- a/src/WorkFlowCheck.API/Controllers/SyncController.cs +++ b/src/WorkFlowCheck.API/Controllers/SyncController.cs @@ -479,7 +479,9 @@ namespace WorkFlowCheck.API.Controllers var fileBytes = await System.IO.File.ReadAllBytesAsync(filePath); var fileType = "application/octet-stream"; - + + Response.Headers.Add("Content-Length", fileBytes.Length.ToString()); + return File(fileBytes, fileType, fileName); } catch (Exception ex)