Related https://github.com/sindresorhus/got/discussions/1748 #743 #1746 #148 #275 #401
await pipeline(
request,
instance.stream(request.url, {
method: request.method,
// This won't work: headers will be copied from `request` anyway
headers: withoutHopByHop(request.headers),
decompress: false,
followRedirect: false,
throwHttpErrors: false,
http2: false,
proxyUrl,
}).on('response', (httpResponse) => {
httpResponse.headers = withoutHopByHop(httpResponse.headers);
}),
response,
);
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too