summaryrefslogtreecommitdiff
path: root/doc/api/http2.md
diff options
context:
space:
mode:
authorСковорода Никита Андреевич <chalkerx@gmail.com>2018-06-23 14:48:54 +0300
committerСковорода Никита Андреевич <chalkerx@gmail.com>2018-07-10 19:38:02 +0300
commit094346c95527f11134ddac4d0dc29e18a785bde8 (patch)
tree64a522123867e5c2c8571f68ad3a84a205669f97 /doc/api/http2.md
parent195480a8bc3a7ffca675210b260086f979e8f4de (diff)
downloadandroid-node-v8-094346c95527f11134ddac4d0dc29e18a785bde8.tar.gz
android-node-v8-094346c95527f11134ddac4d0dc29e18a785bde8.tar.bz2
android-node-v8-094346c95527f11134ddac4d0dc29e18a785bde8.zip
doc: fix http2stream.pushStream error doc
The old error code `ERR_HTTP2_STREAM_CLOSED` was removed in commit 0babd181a0c5d775e62a12b3b04fe4d7654fe80a (pull request #17406), and the testcase for http2stream.pushStream was changed accordingly, but the documentation change was overlooked. This commit fixes it and aligns the documentation with the testcase. This is a part of the fixes hinted by #21470, which includes some tests for error codes usage and documentation and enforces a stricter format. Refs: https://github.com/nodejs/node/pull/21470 Refs: https://github.com/nodejs/node/pull/17406 PR-URL: https://github.com/nodejs/node/pull/21487 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r--doc/api/http2.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index 3e1850a679..9f702de02b 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -3143,7 +3143,7 @@ added: v8.4.0
Call [`http2stream.pushStream()`][] with the given headers, and wraps the
given newly created [`Http2Stream`] on `Http2ServerResponse`.
-The callback will be called with an error with code `ERR_HTTP2_STREAM_CLOSED`
+The callback will be called with an error with code `ERR_HTTP2_INVALID_STREAM`
if the stream is closed.
## Collecting HTTP/2 Performance Metrics