Skip to content

Commit e0ede27

Browse files
committed
Revert "add 'user-agent' in HTTP header"
This reverts commit 725527a.
1 parent 7ae7a2c commit e0ede27

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

lib/client/http-tracker.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,8 @@ HTTPTracker.prototype._request = function (requestUrl, params, cb) {
8989
var self = this
9090
var u = requestUrl + (requestUrl.indexOf('?') === -1 ? '?' : '&') +
9191
common.querystringStringify(params)
92-
var opts = {
93-
url: u,
94-
header: {
95-
'user-agent': self.client._userAgent || '',
96-
}
97-
}
9892

99-
get.concat(opts, function (err, res, data) {
93+
get.concat(u, function (err, res, data) {
10094
if (self.destroyed) return
10195
if (err) return self.client.emit('warning', err)
10296
if (res.statusCode !== 200) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bittorrent-tracker",
33
"description": "Simple, robust, BitTorrent tracker (client & server) implementation",
4-
"version": "8.0.13",
4+
"version": "8.0.12",
55
"author": {
66
"name": "Feross Aboukhadijeh",
77
"email": "[email protected]",

0 commit comments

Comments
 (0)