From 82c1feeea017dfa02ecb16dd8fe432e116c1fc2d Mon Sep 17 00:00:00 2001 From: avwo Date: Sun, 25 Sep 2016 17:22:06 +0800 Subject: [PATCH] refactor: websocket proxy --- lib/https/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/https/index.js b/lib/https/index.js index 9193983e1..12d902fd9 100644 --- a/lib/https/index.js +++ b/lib/https/index.js @@ -42,7 +42,7 @@ function handleWebsocket(socket, clientIp, callback) { socket.reqId = data.reqId = ++index; var reqSocket, options, plugin, pluginRules, matchedUrl, done; - var pluginHomePage = pluginMgr.getPluginByHomePage(fullUrl); + var pluginHomePage = plugin = pluginMgr.getPluginByHomePage(fullUrl); var timeout = util.setTimeout(function() { destroy(new Error('timeout')); });