Skip to content

Commit 3933653

Browse files
authored
return body for sparkpost requests (#186)
1 parent 6557288 commit 3933653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sparkpost.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ SparkPost.prototype.request = function(options, callback) {
117117
err = createSparkPostError(res, body);
118118
reject(err);
119119
} else {
120-
response = body.results || body;
120+
response = body;
121121
if (options.debug) {
122122
response.debug = res;
123123
}

0 commit comments

Comments
 (0)