mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Addressed comments to use some URL helpers
This commit is contained in:
parent
8f9a01059a
commit
77229dbd1a
1 changed files with 3 additions and 1 deletions
|
@ -94,8 +94,10 @@ public override UploadResult Upload(Stream stream, string fileName)
|
|||
string urlForCopy = url;
|
||||
if (!string.IsNullOrEmpty(AzureStorageCustomDomain))
|
||||
{
|
||||
urlForCopy = $"http://{AzureStorageCustomDomain}/{AzureStorageContainer}/{fileName}";
|
||||
// Azure Blob Storage does not support https with custom domains at this time
|
||||
urlForCopy = URLHelpers.ForcePrefix(URLHelpers.CombineURL($"{AzureStorageCustomDomain}", $"{AzureStorageContainer}/{fileName}"), "http://");
|
||||
}
|
||||
|
||||
string contentType = Helpers.GetMimeType(fileName);
|
||||
|
||||
NameValueCollection requestHeaders = new NameValueCollection();
|
||||
|
|
Loading…
Reference in a new issue