-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
res.finished starts as true for HEAD requests from CURL #24283
Copy link
Copy link
Closed
Labels
http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.
Description
For some reason this fails... which is rather strange?
const assert = require('assert');
const http2 = require('http2');
const fixtures = require('../common/fixtures');
http2
.createSecureServer({
allowHTTP1: true,
key: fixtures.readKey('agent1-key.pem'),
cert: fixtures.readKey('agent1-cert.pem'),
ca: fixtures.readKey('ca1-cert.pem')
})
.on('request', (req, res) => {
assert.ok(!res.finished) // AssertionError
})
.listen(5001)curl --head -k https://localhost:5001Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.