mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +00:00
parent
73ef97239b
commit
e1b7fa7e5c
@ -127,6 +127,8 @@ Server.prototype.onHttpRequest = function (req, res) {
|
|||||||
var params
|
var params
|
||||||
try {
|
try {
|
||||||
params = parseHttpRequest(req, { trustProxy: self._trustProxy })
|
params = parseHttpRequest(req, { trustProxy: self._trustProxy })
|
||||||
|
params.httpReq = req
|
||||||
|
params.httpRes = res
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
debug('sent error %s', err.message)
|
debug('sent error %s', err.message)
|
||||||
res.end(bencode.encode({
|
res.end(bencode.encode({
|
||||||
|
Loading…
Reference in New Issue
Block a user