Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

… the same
  • Loading branch information...
commit 290101a22d02a34b77167dcaee46f49fe5e0c7ac 1 parent d4ab026
Nathan authored December 21, 2011

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  lib/couchdb.js
4  lib/couchdb.js
@@ -400,6 +400,10 @@ Database.prototype.getDoc = Database.prototype.openDoc = function(id, options) {
400 400
   }
401 401
 
402 402
   return when(this.request({
  403
+    headers: {
  404
+      'Content-Type': 'application/json',
  405
+      'Accept': 'application/json'
  406
+    },
403 407
     pathname: "/"+id + encodeOptions(options)    
404 408
   }), function(doc) { 
405 409
     return doc;

0 notes on commit 290101a

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