File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ frame.
610
610
// padlen is an 8-bit integer giving the number of padding bytes to include
611
611
// final is a boolean indicating whether the End-of-stream flag should be set,
612
612
// defaults to false.
613
- const data = new http2.DataFrame (id, payload, padlen, final);
613
+ const frame = new http2.DataFrame (id, payload, padlen, final);
614
614
615
615
socket .write (frame .data );
616
616
```
@@ -631,8 +631,7 @@ The `http2.HeadersFrame` is a subclass of `http2.Frame` that serializes a
631
631
// padlen is an 8-bit integer giving the number of padding bytes to include
632
632
// final is a boolean indicating whether the End-of-stream flag should be set,
633
633
// defaults to false.
634
- const data = new http2.HeadersFrame (id, http2 .kFakeRequestHeaders ,
635
- padlen, final);
634
+ const frame = new http2.HeadersFrame (id, payload, padlen, final);
636
635
637
636
socket .write (frame .data );
638
637
```
You can’t perform that action at this time.
0 commit comments