Skip to content

Commit

Permalink
fix: standard [whitespace]
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Aug 30, 2022
1 parent a278102 commit a4bc0c3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 27,6 @@ class ServerBase {
))
.join('<br>')


res.status = 200
res.headers['Content-Type'] = 'text/html'
res.body = getPageHTML(
Expand Down Expand Up @@ -85,7 84,6 @@ class ServerBase {
))
.join('<br>')


res.status = 200
res.headers['Content-Type'] = 'text/html'

Expand All @@ -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']
}
Expand Down Expand Up @@ -152,7 149,6 @@ class ServerBase {
res.headers['Content-Length'] = file.length
}


const stream = req.method === 'GET' && file.createReadStream(range)

let pipe = null
Expand Down Expand Up @@ -395,7 391,6 @@ class BrowserServer extends ServerBase {
}
}


// NOTE: Arguments must already be HTML-escaped
function getPageHTML (title, pageHtml) {
return `
Expand Down

0 comments on commit a4bc0c3

Please sign in to comment.