mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-02-24 06:09:04 +00:00
Revert "add 'user-agent' in HTTP header"
This reverts commit 725527aa84
.
This commit is contained in:
parent
7ae7a2ca07
commit
e0ede27049
@ -89,14 +89,8 @@ HTTPTracker.prototype._request = function (requestUrl, params, cb) {
|
|||||||
var self = this
|
var self = this
|
||||||
var u = requestUrl + (requestUrl.indexOf('?') === -1 ? '?' : '&') +
|
var u = requestUrl + (requestUrl.indexOf('?') === -1 ? '?' : '&') +
|
||||||
common.querystringStringify(params)
|
common.querystringStringify(params)
|
||||||
var opts = {
|
|
||||||
url: u,
|
|
||||||
header: {
|
|
||||||
'user-agent': self.client._userAgent || '',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get.concat(opts, function (err, res, data) {
|
get.concat(u, function (err, res, data) {
|
||||||
if (self.destroyed) return
|
if (self.destroyed) return
|
||||||
if (err) return self.client.emit('warning', err)
|
if (err) return self.client.emit('warning', err)
|
||||||
if (res.statusCode !== 200) {
|
if (res.statusCode !== 200) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "bittorrent-tracker",
|
"name": "bittorrent-tracker",
|
||||||
"description": "Simple, robust, BitTorrent tracker (client & server) implementation",
|
"description": "Simple, robust, BitTorrent tracker (client & server) implementation",
|
||||||
"version": "8.0.13",
|
"version": "8.0.12",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Feross Aboukhadijeh",
|
"name": "Feross Aboukhadijeh",
|
||||||
"email": "feross@feross.org",
|
"email": "feross@feross.org",
|
||||||
|
Loading…
Reference in New Issue
Block a user