From 4b7fb348e578df3aaf48b5000bdb69ad583ed573 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 21 Sep 2026 23:33:46 +0500 Subject: [PATCH] s3: do not fix presigned url protocol to HTTP in dev/staging --- Notesnook.API/Services/S3Service.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Notesnook.API/Services/S3Service.cs b/Notesnook.API/Services/S3Service.cs index 45d9111..7cd1e87 100644 --- a/Notesnook.API/Services/S3Service.cs +++ b/Notesnook.API/Services/S3Service.cs @@ -434,11 +434,7 @@ namespace Notesnook.API.Services Expires = System.DateTime.Now.AddHours(1), Verb = httpVerb, Key = objectName, -#if (DEBUG || STAGING) - Protocol = Protocol.HTTP, -#else Protocol = client.Config.ServiceURL.StartsWith("http://") ? Protocol.HTTP : Protocol.HTTPS, -#endif }; return client.GetPreSignedURLAsync(request); }, operationName: "GetPreSignedURL"); @@ -458,11 +454,7 @@ namespace Notesnook.API.Services Key = objectName, PartNumber = partNumber, UploadId = uploadId, -#if (DEBUG || STAGING) - Protocol = Protocol.HTTP, -#else Protocol = c.Config.ServiceURL.StartsWith("http://") ? Protocol.HTTP : Protocol.HTTPS, -#endif }), operationName: "GetPreSignedURL"); }