Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 503f279

Browse filesBrowse 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 <thechargingvolcano@gmail.com>
1 parent dae9fae commit 503f279
Copy full SHA for 503f279

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Collapse file

‎doc/api/tls.markdown‎

Copy file name to clipboardExpand all lines: doc/api/tls.markdown
+8-8Lines changed: 8 additions & 8 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.