Skip to content

Commit 3e156af

Browse files
Trottjuanarbol
authored andcommitted
doc: simplify Http2Stream encoding text
PR-URL: #42597 Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Harshitha K P <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent 512dba6 commit 3e156af

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/api/http2.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,10 +1009,9 @@ All `Http2Stream` instances are [`Duplex`][] streams. The `Writable` side of the
10091009
`Duplex` is used to send data to the connected peer, while the `Readable` side
10101010
is used to receive data sent by the connected peer.
10111011

1012-
The default text character encoding for all `Http2Stream`s is UTF-8. As a best
1013-
practice, it is recommended that when using an `Http2Stream` to send text,
1014-
the `'content-type'` header should be set and should identify the character
1015-
encoding used.
1012+
The default text character encoding for an `Http2Stream` is UTF-8. When using an
1013+
`Http2Stream` to send text, use the `'content-type'` header to set the character
1014+
encoding.
10161015

10171016
```js
10181017
stream.respond({

0 commit comments

Comments
 (0)