doc: fix indent in tls resumption example
Markdown requires 4-space indent to correctly format code blocks. This fixes the example so it's correctly presented as code. PR-URL: https://github.com/nodejs/node/pull/3372 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
parent
dae9fae0fe
commit
503f279527
@ -605,14 +605,14 @@ established after addition of event listener.
|
|||||||
|
|
||||||
Here's an example for using TLS session resumption:
|
Here's an example for using TLS session resumption:
|
||||||
|
|
||||||
var tlsSessionStore = {};
|
var tlsSessionStore = {};
|
||||||
server.on('newSession', function(id, data, cb) {
|
server.on('newSession', function(id, data, cb) {
|
||||||
tlsSessionStore[id.toString('hex')] = data;
|
tlsSessionStore[id.toString('hex')] = data;
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
server.on('resumeSession', function(id, cb) {
|
server.on('resumeSession', function(id, cb) {
|
||||||
cb(null, tlsSessionStore[id.toString('hex')] || null);
|
cb(null, tlsSessionStore[id.toString('hex')] || null);
|
||||||
});
|
});
|
||||||
|
|
||||||
### Event: 'OCSPRequest'
|
### Event: 'OCSPRequest'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user