From 67daf78c2df5bf859593464dc90b946863b3ce14 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 9 Mar 2015 20:19:27 -0700 Subject: [PATCH] style --- client.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index cebd512..1d14776 100644 --- a/client.js +++ b/client.js @@ -274,7 +274,10 @@ Tracker.prototype._requestHttp = function (requestUrl, opts) { } } - get.concat(requestUrl + ((requestUrl.indexOf('?') !== -1) ? '&' : '?') + common.querystringStringify(opts), function (err, data, res) { + var u = requestUrl + (requestUrl.indexOf('?') === -1 ? '?' : '&') + + common.querystringStringify(opts) + + get.concat(u, function (err, data, res) { if (err) return self.client.emit('warning', err) if (res.statusCode !== 200) return self.client.emit('warning', new Error('Non-200 response code ' + res.statusCode + ' from ' + requestUrl)) if (data && data.length) self._handleResponse(requestUrl, data)