We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 130e363 commit 04e07fdCopy full SHA for 04e07fd
test/response/writable.js
@@ -9,7 +9,7 @@ describe('res.writable', () => {
9
describe('when continuous requests in one persistent connection', () => {
10
function requestTwice(server, done){
11
const port = server.address().port;
12
- const buf = new Buffer('GET / HTTP/1.1\r\nHost: localhost:' + port + '\r\nConnection: keep-alive\r\n\r\n');
+ const buf = Buffer.from('GET / HTTP/1.1\r\nHost: localhost:' + port + '\r\nConnection: keep-alive\r\n\r\n');
13
const client = net.connect(port);
14
const datas = [];
15
client
0 commit comments