Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
TEMP - debugging for a test
  • Loading branch information
Fishrock123 committed Nov 23, 2017
commit 606abb38e89cd403ceaa77f8ac963aef9c784f75
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ server.listen(0, common.mustCall(() => {
server.close();
}));

server.on('clientError', (e) => console.error(e));

function request(callback) {
socket.setEncoding('utf8');
socket.on('data', onData);
Expand All @@ -49,6 +51,7 @@ server.listen(0, common.mustCall(() => {
}

function onHeaders() {
console.log(require('util').inspect(response));
assert.ok(response.includes('HTTP/1.1 200 OK\r\n'));
assert.ok(response.includes('Connection: keep-alive\r\n'));
callback();
Expand Down