From c0d8311f6b86ef35cdb0b233f3c3d2b83c4a3381 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Sun, 14 Aug 2011 00:45:38 +0700 Subject: [PATCH] small NPN doc fix Fixes #1522. --- doc/api/tls.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/tls.markdown b/doc/api/tls.markdown index b83a17c9b47..cfaac27aaf4 100644 --- a/doc/api/tls.markdown +++ b/doc/api/tls.markdown @@ -43,7 +43,7 @@ defaults to `localhost`.) `options` should be an object which specifies These are used to authorize connections. - `NPNProtocols`: An array of string or `Buffer` containing supported NPN - protocols. `Buffer` should have following format: `0x04hello0x5world`, where + protocols. `Buffer` should have following format: `0x05hello0x05world`, where first byte is next protocol name's length. (Passing array should usually be much simplier: `['hello', 'world']`.)