File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -593,7 +593,7 @@ frame.
593593// padlen is an 8-bit integer giving the number of padding bytes to include
594594// final is a boolean indicating whether the End-of-stream flag should be set,
595595// defaults to false.
596- const data = new http2.DataFrame (id, payload, padlen, final);
596+ const frame = new http2.DataFrame (id, payload, padlen, final);
597597
598598socket .write (frame .data );
599599```
@@ -611,8 +611,7 @@ The `http2.HeadersFrame` is a subclass of `http2.Frame` that serializes a
611611// padlen is an 8-bit integer giving the number of padding bytes to include
612612// final is a boolean indicating whether the End-of-stream flag should be set,
613613// defaults to false.
614- const data = new http2.HeadersFrame (id, http2 .kFakeRequestHeaders ,
615- padlen, final);
614+ const frame = new http2.HeadersFrame (id, payload, padlen, final);
616615
617616socket .write (frame .data );
618617```
You can’t perform that action at this time.
0 commit comments