fix(tracker-axios): resp header name-value flip

This commit is contained in:
Alex Kaminskii 2022-08-31 12:19:45 +02:00
parent f5820fc7d6
commit 6f58968e21

View file

@ -105,7 +105,7 @@ export default function(opts: Partial<Options> = {}) {
// TODO: type safe axios headers
if (typeof res.headers === 'object') {
Object.entries(res.headers as Record<string, string>).forEach(([v, n]) => { if (!isHIgnoring(n)) resHs[n] = v })
Object.entries(res.headers as Record<string, string>).forEach(([n, v]) => { if (!isHIgnoring(n)) resHs[n] = v })
}
}