File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1013,10 +1013,9 @@ All `Http2Stream` instances are [`Duplex`][] streams. The `Writable` side of the
1013
1013
` Duplex ` is used to send data to the connected peer, while the ` Readable ` side
1014
1014
is used to receive data sent by the connected peer.
1015
1015
1016
- The default text character encoding for all ` Http2Stream ` s is UTF-8. As a best
1017
- practice, it is recommended that when using an ` Http2Stream ` to send text,
1018
- the ` 'content-type' ` header should be set and should identify the character
1019
- encoding used.
1016
+ The default text character encoding for an ` Http2Stream ` is UTF-8. When using an
1017
+ ` Http2Stream ` to send text, use the ` 'content-type' ` header to set the character
1018
+ encoding.
1020
1019
1021
1020
``` js
1022
1021
stream .respond ({
You can’t perform that action at this time.
0 commit comments