Return clean PublicUrl without port number when default is used.

This commit is contained in:
Thierry Fleury
2016-03-23 12:31:24 +01:00
parent 740039d6ef
commit 8b66c9530f

View File

@@ -310,7 +310,7 @@ namespace Orchard.Azure.Services.FileSystems {
path = ConvertToRelativeUriPath(path);
var uri = new UriBuilder(Container.GetBlockBlobReference(String.Concat(_root, path)).Uri);
if (!string.IsNullOrEmpty(_publicHostName)) uri.Host = _publicHostName;
return uri.ToString();
return uri.Uri.ToString();
}
private class AzureBlobFileStorage : IStorageFile {