We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 844be26 commit 4ca49a6Copy full SHA for 4ca49a6
lib/server.js
@@ -9,7 +9,7 @@
9
included in all copies or substantial portions of this Source Code Form.
10
*/
11
const url = require('url');
12
-const { createServer, ServerResponse } = require('http');
+const { createServer } = require('http');
13
14
const open = require('open');
15
@@ -96,12 +96,6 @@ const start = async function start() {
96
}
97
};
98
99
- // Node < v10 doesn't send upgrade requests through. This simulates what occurs on
100
- // on Node >= v10
101
- if (parseInt(process.versions.node, 10) < 10) {
102
- server.on('upgrade', (req) => server.emit('request', req, new ServerResponse(req)));
103
- }
104
-
105
this.listening = true;
106
107
const protocol = secure ? 'https' : 'http';
0 commit comments