Skip to content

Commit 503f279

Browse files
committed
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: #3372 Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent dae9fae commit 503f279

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/api/tls.markdown

+8-8
Original file line numberDiff line numberDiff line change
@@ -605,14 +605,14 @@ established after addition of event listener.
605605

606606
Here's an example for using TLS session resumption:
607607

608-
var tlsSessionStore = {};
609-
server.on('newSession', function(id, data, cb) {
610-
tlsSessionStore[id.toString('hex')] = data;
611-
cb();
612-
});
613-
server.on('resumeSession', function(id, cb) {
614-
cb(null, tlsSessionStore[id.toString('hex')] || null);
615-
});
608+
var tlsSessionStore = {};
609+
server.on('newSession', function(id, data, cb) {
610+
tlsSessionStore[id.toString('hex')] = data;
611+
cb();
612+
});
613+
server.on('resumeSession', function(id, cb) {
614+
cb(null, tlsSessionStore[id.toString('hex')] || null);
615+
});
616616

617617
### Event: 'OCSPRequest'
618618

0 commit comments

Comments
 (0)