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

Commit abf9a9e

Browse files
committed
The "accept" header needs to be specified so we get application/json and not application/xml in return
1 parent c5e97ef commit abf9a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TeamCitySharp/ActionTypes/Projects.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Project Details(Project project)
4242

4343
public Project Create(string projectName)
4444
{
45-
return _caller.Post<Project>(projectName, HttpContentTypes.TextPlain, "/app/rest/projects/", string.Empty);
45+
return _caller.Post<Project>(projectName, HttpContentTypes.TextPlain, "/app/rest/projects/", HttpContentTypes.ApplicationJson);
4646
}
4747

4848
public void Delete(string projectName)

0 commit comments

Comments
 (0)