GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http2: do not falsely emit 'aborted' on push · nodejs/node@badc38f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/http2
    • core.js
  • test/parallel
    • test-http2-server-push-stream.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/http2/core.js‎

Copy file name to clipboardExpand all lines: lib/internal/http2/core.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ function onSessionHeaders(handle, id, cat, flags, headers) {
279279
}
280280
} else {
281281
stream = new ClientHttp2Stream(session, handle, id, opts);
282+
stream.end();
282283
}
283284
if (endOfStream)
284285
stream[kState].endAfterHeaders = true;
Collapse file

‎test/parallel/test-http2-server-push-stream.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http2-server-push-stream.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ server.listen(0, common.mustCall(() => {
5454
assert.strictEqual(headers['content-type'], 'text/html');
5555
assert.strictEqual(headers['x-push-data'], 'pushed by server');
5656
}));
57+
stream.on('aborted', common.mustNotCall());
5758
}));
5859

5960
let data = '';

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.