From 40f25713b96ad8a4cf09f4e8f306132d7bacb174 Mon Sep 17 00:00:00 2001 From: "Turner, Dan" Date: Mon, 15 Sep 2014 18:43:50 +1000 Subject: [PATCH] fix: Specify a content-type where a a return object is expected Fixes #48 --- src/TeamCitySharp/ActionTypes/VcsRoots.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TeamCitySharp/ActionTypes/VcsRoots.cs b/src/TeamCitySharp/ActionTypes/VcsRoots.cs index 9e1e95a9..b418e053 100644 --- a/src/TeamCitySharp/ActionTypes/VcsRoots.cs +++ b/src/TeamCitySharp/ActionTypes/VcsRoots.cs @@ -33,7 +33,7 @@ public VcsRoot ById(string vcsRootId) public VcsRoot AttachVcsRoot(BuildTypeLocator locator, VcsRoot vcsRoot) { var xml = string.Format(@"", vcsRoot.Id); - return _caller.PostFormat(xml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/vcs-root-entries", locator); + return _caller.PostFormat(xml, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/vcs-root-entries", locator); } public void DetachVcsRoot(BuildTypeLocator locator, string vcsRootId)