From 7d2678f60bf2e9482d6d39fe053fe02695b346ed Mon Sep 17 00:00:00 2001 From: airouboss Date: Tue, 12 May 2026 21:00:32 +0100 Subject: [PATCH] fix: correct Content-Length header in OTP download handler --- AdaptixServer/core/connector/tc_otp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdaptixServer/core/connector/tc_otp.go b/AdaptixServer/core/connector/tc_otp.go index 30f097143..74f8f0498 100644 --- a/AdaptixServer/core/connector/tc_otp.go +++ b/AdaptixServer/core/connector/tc_otp.go @@ -175,7 +175,7 @@ func (tc *TsConnector) tcOTP_DownloadSync(ctx *gin.Context) { ctx.Header("Content-Disposition", "attachment; filename="+fileInfo.Name()) ctx.Header("Content-Type", "application/octet-stream") - ctx.Header("Content-Length", string(rune(fileInfo.Size()))) + ctx.Header("Content-Length", strconv.FormatInt(fileInfo.Size(), 10)) ctx.File(path) }