mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:17:23 +01:00
Update ApIController.Functions.Files.cs
This commit is contained in:
parent
143c0b1e81
commit
04afc4db02
1 changed files with 1 additions and 6 deletions
|
|
@ -55,12 +55,7 @@ namespace MareSynchronos.WebAPI
|
|||
wc.DownloadProgressChanged += progChanged;
|
||||
|
||||
string fileName = Path.GetTempFileName();
|
||||
Uri baseUri;
|
||||
if (ApiUri.StartsWith("ws://")) { // Bad bad bad but yeah
|
||||
baseUri = new Uri(ApiUri.Replace("ws", "http"), UriKind.Absolute);
|
||||
} else {
|
||||
baseUri = new Uri(ApiUri.Replace("wss", "https"), UriKind.Absolute);
|
||||
}
|
||||
var baseUri = new Uri(ApiUri.Replace("ws", "http"), UriKind.Absolute);
|
||||
var relativeUri = new Uri("cache/" + hash, UriKind.Relative);
|
||||
var fileUri = new Uri(baseUri, relativeUri);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue