Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThaUnknown <6506529+ThaUnknown@users.noreply.github.com>2022-08-30 16:02:24 +0300
committerThaUnknown <6506529+ThaUnknown@users.noreply.github.com>2022-08-30 16:02:24 +0300
commita4bc0c3c5167405d0b93f8f061d9bad3229414fd (patch)
treeee17d6269525be73c09c2adb3b54ded223737e11
parenta278102732ee041e1a92af859b5e3cc21179d15c (diff)
fix: standard [whitespace]
-rw-r--r--lib/server.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/server.js b/lib/server.js
index 83653f8..1d1bfa8 100644
--- a/lib/server.js
+++ b/lib/server.js
@@ -27,7 +27,6 @@ class ServerBase {
))
.join('<br>')
-
res.status = 200
res.headers['Content-Type'] = 'text/html'
res.body = getPageHTML(
@@ -85,7 +84,6 @@ class ServerBase {
))
.join('<br>')
-
res.status = 200
res.headers['Content-Type'] = 'text/html'
@@ -103,7 +101,6 @@ class ServerBase {
res.headers['Access-Control-Max-Age'] = '600'
res.headers['Access-Control-Allow-Methods'] = 'GET,HEAD'
-
if (req.headers['access-control-request-headers']) {
res.headers['Access-Control-Allow-Headers'] = req.headers['access-control-request-headers']
}
@@ -152,7 +149,6 @@ class ServerBase {
res.headers['Content-Length'] = file.length
}
-
const stream = req.method === 'GET' && file.createReadStream(range)
let pipe = null
@@ -395,7 +391,6 @@ class BrowserServer extends ServerBase {
}
}
-
// NOTE: Arguments must already be HTML-escaped
function getPageHTML (title, pageHtml) {
return `