Skip to content
Browse files

fixes "Failed to create document: The remote server returned an error…

…: (415) Unsupported Media Type." error with CouchDB 1.0.0
  • Loading branch information...
1 parent bbafde3 commit 598b0a1d7b7c39eead9057852d39ba76fce15aa6 @ghallas ghallas committed with whenrik Jul 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/CouchDatabase.cs
View
2 src/CouchDatabase.cs
@@ -464,7 +464,7 @@ public ICouchDocument CreateDocument(ICouchDocument document)
{
try
{
- JObject result = Request().Data(CouchDocument.WriteJson(document)).Post().Check("Failed to create document").Result();
+ JObject result = Request().Data(CouchDocument.WriteJson(document)).PostJson().Check("Failed to create document").Result();
document.Id = result["id"].Value<string>();
document.Rev = result["rev"].Value<string>();
return document;

0 comments on commit 598b0a1

Please sign in to comment.
Something went wrong with that request. Please try again.