Remove unnecessary traces.

This commit is contained in:
Julien Fontanet
2015-05-19 13:03:12 +02:00
parent 91f557ac9e
commit 9d1da81557

View File

@@ -166,10 +166,8 @@ const setUpProxies = (connect, opts) => {
const {url} = req
for (let prefix in opts) {
console.log({prefix, url})
if (url.lastIndexOf(prefix, 0) !== -1) {
const target = opts[prefix] + url.slice(prefix.length)
console.log('ok', opts[prefix])
webSocketServer.handleUpgrade(req, socket, head, socket => {
wsProxy(socket, target)
})