Skip to content

Commit

Permalink
return body for sparkpost requests (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
aydrian committed Nov 2, 2016
1 parent 6557288 commit 3933653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sparkpost.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ SparkPost.prototype.request = function(options, callback) {
err = createSparkPostError(res, body);
reject(err);
} else {
response = body.results || body;
response = body;
if (options.debug) {
response.debug = res;
}
Expand Down

0 comments on commit 3933653

Please sign in to comment.