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 @@ -616,7 +616,7 @@ frame.
616616// padlen is an 8-bit integer giving the number of padding bytes to include
617617// final is a boolean indicating whether the End-of-stream flag should be set,
618618// defaults to false.
619- const data = new http2.DataFrame (id, payload, padlen, final);
619+ const frame = new http2.DataFrame (id, payload, padlen, final);
620620
621621socket .write (frame .data );
622622```
@@ -637,8 +637,7 @@ The `http2.HeadersFrame` is a subclass of `http2.Frame` that serializes a
637637// padlen is an 8-bit integer giving the number of padding bytes to include
638638// final is a boolean indicating whether the End-of-stream flag should be set,
639639// defaults to false.
640- const data = new http2.HeadersFrame (id, http2 .kFakeRequestHeaders ,
641- padlen, final);
640+ const frame = new http2.HeadersFrame (id, payload, padlen, final);
642641
643642socket .write (frame .data );
644643```
You can’t perform that action at this time.
0 commit comments