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 @@ -593,7 +593,7 @@ frame.
593
593
// padlen is an 8-bit integer giving the number of padding bytes to include
594
594
// final is a boolean indicating whether the End-of-stream flag should be set,
595
595
// defaults to false.
596
- const data = new http2.DataFrame (id, payload, padlen, final);
596
+ const frame = new http2.DataFrame (id, payload, padlen, final);
597
597
598
598
socket .write (frame .data );
599
599
```
@@ -611,8 +611,7 @@ The `http2.HeadersFrame` is a subclass of `http2.Frame` that serializes a
611
611
// padlen is an 8-bit integer giving the number of padding bytes to include
612
612
// final is a boolean indicating whether the End-of-stream flag should be set,
613
613
// 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);
616
615
617
616
socket .write (frame .data );
618
617
```
You can’t perform that action at this time.
0 commit comments