Skip to content

Commit

Permalink
fix: Specify a content-type where a a return object is expected
Browse files Browse the repository at this point in the history
  • Loading branch information
Turner, Dan committed Sep 15, 2014
1 parent 7c8a610 commit 40f2571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TeamCitySharp/ActionTypes/VcsRoots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public VcsRoot ById(string vcsRootId)
public VcsRoot AttachVcsRoot(BuildTypeLocator locator, VcsRoot vcsRoot)
{
var xml = string.Format(@"<vcs-root-entry><vcs-root id=""{0}""/></vcs-root-entry>", vcsRoot.Id);
return _caller.PostFormat<VcsRoot>(xml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/vcs-root-entries", locator);
return _caller.PostFormat<VcsRoot>(xml, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/vcs-root-entries", locator);
}

public void DetachVcsRoot(BuildTypeLocator locator, string vcsRootId)
Expand Down

0 comments on commit 40f2571

Please sign in to comment.