Skip to content

Commit

Permalink
Fixes #4370 by changing absolute URLs to relative
Browse files Browse the repository at this point in the history
  • Loading branch information
koskila committed Oct 25, 2024
1 parent 8dd3d5f commit 8967ab2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Commands/Files/GetFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ protected override void ExecuteCmdlet()
}
}

// We can't deal with absolute URLs
Url = UrlUtility.MakeRelativeUrl(Url);

// Remove URL decoding from the Url as that will not work. We will encode the + character specifically, because if that is part of the filename, it needs to stay and not be decoded.
Url = Utilities.UrlUtilities.UrlDecode(Url.Replace("+", "%2B"));

Expand Down

0 comments on commit 8967ab2

Please sign in to comment.