Skip to content

Commit

Permalink
Merge pull request #30 from silvolu/master
Browse files Browse the repository at this point in the history
Pass to request an empty object instead of true
  • Loading branch information
Burcu Dogan committed Jul 23, 2014
2 parents 09e91c9 + adf5179 commit e4b8f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datastore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ Transaction.prototype.mapQuery = function(q, mapperFn, opt_callback) {
Transaction.prototype.makeReq = function(method, req, callback) {
// TODO(jbd): Switch to protobuf API.
// Always pass a value for json to automagically get headers/response parsing.
req = req || true;
req = req || {};
this.conn.req({
method: 'POST',
uri: DATASTORE_BASE_URL + '/' + this.datasetId + '/' + method,
Expand Down

0 comments on commit e4b8f34

Please sign in to comment.