From 45e62d07e26d73005d1f7790e3b4982c3ff7ce35 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Fri, 28 Mar 2025 18:30:53 +0000 Subject: [PATCH] use req protocol instead https --- packages/server/services/files/routes/upload/chunk/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/services/files/routes/upload/chunk/post.js b/packages/server/services/files/routes/upload/chunk/post.js index 9a7c9a90..53eb482e 100644 --- a/packages/server/services/files/routes/upload/chunk/post.js +++ b/packages/server/services/files/routes/upload/chunk/post.js @@ -81,7 +81,7 @@ export default { return { uploadId: uploadId, sseChannelId: sseChannelId, - eventChannelURL: `https://${req.get("host")}/upload/sse_events/${sseChannelId}`, + eventChannelURL: `${req.protocol}://${req.get("host")}/upload/sse_events/${sseChannelId}`, } } else { const result = await RemoteUpload({