Permalink
Browse files

add accept application/json to getDoc so that 1.0.x and 1.1.x perform…

… the same
  • Loading branch information...
nrstott committed Dec 21, 2011
1 parent d4ab026 commit 290101a22d02a34b77167dcaee46f49fe5e0c7ac
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/couchdb.js
View
@@ -400,6 +400,10 @@ Database.prototype.getDoc = Database.prototype.openDoc = function(id, options) {
}
return when(this.request({
+ headers: {
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+ },
pathname: "/"+id + encodeOptions(options)
}), function(doc) {
return doc;

0 comments on commit 290101a

Please sign in to comment.