Skip to content

Commit 8ee64c0

Browse files
committed
[Client] Fix question mark in announceUrl
1 parent 57cef88 commit 8ee64c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Tracker.prototype._requestHttp = function (requestUrl, opts) {
274274
}
275275
}
276276

277-
get.concat(requestUrl + '?' + common.querystringStringify(opts), function (err, data, res) {
277+
get.concat(requestUrl + ((requestUrl.indexOf('?') !== -1) ? '&' : '?') + common.querystringStringify(opts), function (err, data, res) {
278278
if (err) return self.client.emit('warning', err)
279279
if (res.statusCode !== 200) return self.client.emit('warning', new Error('Non-200 response code ' + res.statusCode + ' from ' + requestUrl))
280280
if (data && data.length) self._handleResponse(requestUrl, data)

0 commit comments

Comments
 (0)