Websocket key was unnecessary long.

This commit is contained in:
Arttu Liimola 2015-08-30 22:19:57 +03:00 committed by Jarrett Cruger
parent da674ec4df
commit ca73208749

View File

@ -415,7 +415,7 @@ describe('lib/http-proxy.js', function() {
}), }),
proxyServer = proxy.listen(ports.proxy), proxyServer = proxy.listen(ports.proxy),
destiny = new ws.Server({ port: ports.source }, function () { destiny = new ws.Server({ port: ports.source }, function () {
var key = new Buffer(Math.random().toString(35)).toString('base64'); var key = new Buffer(Math.random().toString()).toString('base64');
var requestOptions = { var requestOptions = {
port: ports.proxy, port: ports.proxy,