| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dd6bf20 commit 2133b18
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,6 +57,7 @@ const server = https.createServer(options, common.mustCall(function(req, res) { | |||
| 57 | 57 | assert.strictEqual(cert.modulus, modulus); | |
| 58 | 58 | res.writeHead(200, { 'content-type': 'text/plain' }); | |
| 59 | 59 | res.end(body); | |
| 60 | + console.log('sent response'); | ||
| 60 | 61 | })); | |
| 61 | 62 | ||
| 62 | 63 | server.listen(0, function() { | |
@@ -69,10 +70,12 @@ server.listen(0, function() { | |||
| 69 | 70 | const client = spawn(common.opensslCli, args); | |
| 70 | 71 | ||
| 71 | 72 | client.stdout.on('data', function(data) { | |
| 73 | + console.log('response received'); | ||
| 72 | 74 | const message = data.toString(); | |
| 73 | 75 | const contents = message.split(CRLF + CRLF).pop(); | |
| 74 | 76 | assert.strictEqual(body, contents); | |
| 75 | 77 | server.close(); | |
| 78 | + console.log('server closed'); | ||
| 76 | 79 | }); | |
| 77 | 80 | ||
| 78 | 81 | client.stdin.write('GET /\n\n'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments