fix standard

This commit is contained in:
Diego Rodríguez Baquero 2020-03-29 12:51:49 -05:00 committed by GitHub
parent 8b8daa3d4a
commit 587b6e6395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,7 @@ class Server extends EventEmitter {
res.setHeader('Content-Type', 'application/json')
res.end(JSON.stringify(stats))
} else if (req.url === '/stats') {
res.setHeader('Content-Type', 'text/html');
res.setHeader('Content-Type', 'text/html')
res.end(`
<h1>${stats.torrents} torrents (${stats.activeTorrents} active)</h1>
<h2>Connected Peers: ${stats.peersAll}</h2>