Skip to content

Commit 8967ab2

Browse files
committed
Fixes #4370 by changing absolute URLs to relative
1 parent 8dd3d5f commit 8967ab2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Commands/Files/GetFile.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ protected override void ExecuteCmdlet()
6666
}
6767
}
6868

69+
// We can't deal with absolute URLs
70+
Url = UrlUtility.MakeRelativeUrl(Url);
71+
6972
// 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.
7073
Url = Utilities.UrlUtilities.UrlDecode(Url.Replace("+", "%2B"));
7174

0 commit comments

Comments
 (0)