Skip to content

Commit

Permalink
TEMP - debugging for a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishrock123 committed Nov 23, 2017
1 parent 4ec0510 commit 606abb3
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit 606abb3

Please sign in to comment.