We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abf0e20 commit bc1d699Copy full SHA for bc1d699
server.js
@@ -136,7 +136,7 @@ class Server extends EventEmitter {
136
}
137
138
// Http handler for '/stats' route
139
- this.http.on('request', this.onStats);
+ this.http.on('request', this.onStats)
140
141
142
let num = !!this.http + !!this.udp4 + !!this.udp6
@@ -364,8 +364,8 @@ class Server extends EventEmitter {
364
onHttpRequest (req, res, opts = {}) {
365
opts.trustProxy = opts.trustProxy || this._trustProxy
366
367
- if (req.originalUrl === "/stats" || req.originalUrl === "/stats.json") {
368
- return this.onStats(req, res);
+ if (req.originalUrl === '/stats' || req.originalUrl === '/stats.json') {
+ return this.onStats(req, res)
369
370
371
let params
0 commit comments