mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: fix typos in the tls NPNProtocols option
This commit is contained in:
1 parent
afabdf0e15
commit
5bda2bed37
1 file changed
+2
-2
@@ -270,8 +270,8 @@ Creates a new client connection to the given `port` and `host` (old API) or
|
||||
the list of supplied CAs. An `'error'` event is emitted if verification
|
||||
fails. Default: `true`.
|
||||
|
||||
- `NPNProtocols`: An array of string or `Buffer` containing supported NPN
|
||||
protocols. `Buffer` should have following format: `0x05hello0x05world`,
|
||||
- `NPNProtocols`: An array of strings or `Buffer`s containing supported NPN
|
||||
protocols. `Buffer`s should have following format: `0x05hello0x05world`,
|
||||
where first byte is next protocol name's length. (Passing array should
|
||||
usually be much simpler: `['hello', 'world']`.)
|
||||
|
||||
|
||||
Reference in new issue
Block a user