use req protocol instead https

This commit is contained in:
SrGooglo 2025-03-28 18:30:53 +00:00
parent bdbecb2857
commit 45e62d07e2

View File

@ -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({