Skip to content

Commit

Permalink
#138 Create links using new format
Browse files Browse the repository at this point in the history
  • Loading branch information
gpailler committed Apr 3, 2020
1 parent b865eea commit ee21c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MegaApiClient/MegaApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ public Uri GetDownloadLink(INode node)
string response = this.Request<string>(request);

return new Uri(BaseUri, string.Format(
"/#{0}!{1}!{2}",
node.Type == NodeType.Directory ? "F" : string.Empty,
"/{0}/{1}#{2}",
node.Type == NodeType.Directory ? "folder" : "file",
response,
node.Type == NodeType.Directory ? nodeCrypto.SharedKey.ToBase64() : nodeCrypto.FullKey.ToBase64()));
}
Expand Down

0 comments on commit ee21c15

Please sign in to comment.