Open
Description
Version
20.12.1
Platform
Darwin wkuc-na 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:12 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T8103 arm64
Subsystem
No response
What steps will reproduce the bug?
Just run code in node version >= 17:
const https = require('https');
https.get('https://autokult.pl', (res) => {
console.log(process.versions.node, res.statusCode);
let rawData = '';
res.on('data', (chunk) => {
rawData += chunk;
});
res.on('end', () => {
//console.log(rawData)
});
}).on('error', (e) => {
console.error(`Got error: ${e.message}`);
});
Response code is 449.
How often does it reproduce? Is there a required condition?
Always in node environment >= 17
What is the expected behavior? Why is that the expected behavior?
Response should return status 200
What do you see instead?
Response code is 449.
Additional information
No response