`Host` header is not properly rewritten upon 3xx redirect
TooTallNate opened this issue · 1 comments
TooTallNate commented
Ex:
const fetch = require('@zeit/fetch')(require('node-fetch'))
const url = 'https://github.com/paulkernfeld/node-headless/tarball/master'
async function main() {
const res = await fetch(url, {
headers: {
'User-Agent': 'ace'
}
})
console.log(res)
}
main().catch(err => {
console.error(err);
process.exit(1);
});
TooTallNate commented
This was fixed by vercel/fetch-cached-dns@f524bae.