Skip to content

Commit a9f9e21

Browse files
committed
[fix]
1 parent 3d8e538 commit a9f9e21

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/http-proxy/index.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ function ProxyServer(options) {
101101

102102
ProxyServer.prototype.listen = function(port) {
103103
var self = this,
104-
closure = function(req, res) { self.web(req, res); },
105-
this._server = options.ssl ?
106-
https.createServer(this.options.ssl, closure) :
107-
http.createServer(closure);
104+
closure = function(req, res) { self.web(req, res); };
105+
106+
this._server = options.ssl ?
107+
https.createServer(this.options.ssl, closure) :
108+
http.createServer(closure);
108109

109110
if(options.ws) {
110111
this._server.on('upgrade', function(req, socket, head) { self.ws(req, socket, head); });

0 commit comments

Comments
 (0)