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

Commit 40f2571

Browse files
author
Turner, Dan
committed
fix: Specify a content-type where a a return object is expected
Fixes #48
1 parent 7c8a610 commit 40f2571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/TeamCitySharp/ActionTypes/VcsRoots.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public VcsRoot ById(string vcsRootId)
3333
public VcsRoot AttachVcsRoot(BuildTypeLocator locator, VcsRoot vcsRoot)
3434
{
3535
var xml = string.Format(@"<vcs-root-entry><vcs-root id=""{0}""/></vcs-root-entry>", vcsRoot.Id);
36-
return _caller.PostFormat<VcsRoot>(xml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/vcs-root-entries", locator);
36+
return _caller.PostFormat<VcsRoot>(xml, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/vcs-root-entries", locator);
3737
}
3838

3939
public void DetachVcsRoot(BuildTypeLocator locator, string vcsRootId)

0 commit comments

Comments
 (0)