Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Commit

Permalink
BugFix
Browse files Browse the repository at this point in the history
Make it possible to download artifacts, which include a "+" within the url
  • Loading branch information
schreiter-thomas-lgs committed May 6, 2014
1 parent 3b11bac commit 2a3cf24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TeamCitySharp/Connection/TeamCityCaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public void GetDownloadFormat(Action<string> 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");
Expand Down Expand Up @@ -289,4 +290,4 @@ private string GetContentType(string data)
return HttpContentTypes.TextPlain;
}
}
}
}

0 comments on commit 2a3cf24

Please sign in to comment.