From 2a3cf2448fcf0d81f7a416f1baa85740eaf17a4e Mon Sep 17 00:00:00 2001 From: SCTHO Date: Tue, 6 May 2014 15:26:10 +0200 Subject: [PATCH] BugFix Make it possible to download artifacts, which include a "+" within the url --- src/TeamCitySharp/Connection/TeamCityCaller.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TeamCitySharp/Connection/TeamCityCaller.cs b/src/TeamCitySharp/Connection/TeamCityCaller.cs index 35879822..8f2cbadf 100644 --- a/src/TeamCitySharp/Connection/TeamCityCaller.cs +++ b/src/TeamCitySharp/Connection/TeamCityCaller.cs @@ -67,6 +67,7 @@ public void GetDownloadFormat(Action downloadHandler, string urlPart, pa throw new ArgumentException("If you are not acting as a guest you must supply userName and password"); } + urlPart = System.Web.HttpUtility.UrlEncode(urlPart); if (string.IsNullOrEmpty(urlPart)) { throw new ArgumentException("Url must be specfied"); @@ -289,4 +290,4 @@ private string GetContentType(string data) return HttpContentTypes.TextPlain; } } -} \ No newline at end of file +}