Skip to content

Commit

Permalink
Applied a fix for the couchdb client found here: http://groups.google…
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul authored and Paul committed Jun 14, 2011
1 parent 471fb28 commit 2f136f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions geddy-core/lib/clients/couchdb.js
Expand Up @@ -40,6 +40,7 @@ couchdb.Client.prototype = new function () {
headers = {host: this.hostname};
if (req.data) {
headers['content-length'] = req.data.length;
headers['content-type'] = 'application/json';
}

request = this.client.request(req.method, req.url, headers);
Expand Down
4 changes: 4 additions & 0 deletions geddy-model/lib/adapters/couchdb.js
Expand Up @@ -135,6 +135,10 @@ var adapter = new function () {
};

var _buildItems = function (resp, params) {
console.log("resp:");
console.log(resp);
console.log("params:");
console.log(params);
var body = JSON.parse(resp.body);
var rows = body.rows;
var data, parsed, resp = [];
Expand Down

0 comments on commit 2f136f2

Please sign in to comment.