diff --git a/src/TeamCitySharp/ActionTypes/BuildConfigs.cs b/src/TeamCitySharp/ActionTypes/BuildConfigs.cs index cdcd4a0f..cafd67e5 100644 --- a/src/TeamCitySharp/ActionTypes/BuildConfigs.cs +++ b/src/TeamCitySharp/ActionTypes/BuildConfigs.cs @@ -101,12 +101,12 @@ public void SetConfigurationPauseStatus(BuildTypeLocator locator, bool isPaused) public void PostRawArtifactDependency(BuildTypeLocator locator, string rawXml) { - _caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/artifact-dependencies", locator); + _caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/artifact-dependencies", locator); } public void PostRawBuildStep(BuildTypeLocator locator, string rawXml) { - _caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/steps", locator); + _caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/steps", locator); } public void PostRawBuildTrigger(BuildTypeLocator locator, string rawXml) 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)