Open
Description
Related #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,
);