Commit 73cb13da by Alex MacCaw

Fix Discovery searches

parent 40407f38
...@@ -59,8 +59,9 @@ ClearbitClient.prototype.request = function (options) { ...@@ -59,8 +59,9 @@ ClearbitClient.prototype.request = function (options) {
return needle.requestAsync( return needle.requestAsync(
options.method, options.method,
this.url(options), this.url(options),
options.query, options.body || options.query,
{ {
json: options.json,
headers: options.headers, headers: options.headers,
timeout: options.stream ? 60000 : 10000, timeout: options.stream ? 60000 : 10000,
username: this.key, username: this.key,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment