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:
authorFeross Aboukhadijeh <feross@feross.org>2015-03-07 04:54:26 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-03-07 04:54:26 +0300
commit7ba50a46f79cc778727a047e121bfdcbb16fd50e (patch)
treeac7382c8570d058265b208db02e29d4130ef93a2 /lib/server.js
parent2a3c90fb20942ab7e6eee709508d3564b349cc01 (diff)
style: always use braces
Diffstat (limited to 'lib/server.js')
-rw-r--r--lib/server.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/server.js b/lib/server.js
index 9b05ae9..6490e70 100644
--- a/lib/server.js
+++ b/lib/server.js
@@ -28,8 +28,9 @@ module.exports = function Server (torrent, opts) {
return res.end()
}
- if (req.headers.origin)
+ if (req.headers.origin) {
res.setHeader('Access-Control-Allow-Origin', req.headers.origin)
+ }
var pathname = url.parse(req.url).pathname
if (pathname === '/favicon.ico') return res.end()