s3: do not fix presigned url protocol to HTTP in dev/staging

This commit is contained in:
Abdullah Atta committed 2026-09-21 23:33:46 +05:00
1 parent 0f287328d9
commit 4b7fb348e5
1 file changed
-8
-8
View File
@@ -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");
}