We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6959f9b commit 6535f17Copy full SHA for 6535f17
lib/connection.js
@@ -30,6 +30,7 @@ Connection.defaults = {
30
extend(Connection.prototype, {
31
request: function (opts, callback) {
32
if (!callback) callback = noop;
33
+ if (!opts) opts = {};
34
var body = opts.body,
35
headers = {'content-type': 'text/plain'};
36
0 commit comments