Skip to content

Commit e223fc7

Browse files
silverwindjasnell
authored andcommitted
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 41a4258 commit e223fc7

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
@@ -606,14 +606,14 @@ established after addition of event listener.
606606

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

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

618618
### Event: 'OCSPRequest'
619619

0 commit comments

Comments
 (0)