blob: 0d1bf5e2e80e76d9e7e01b99b130b48ee6224158 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// eslint-disable-next-line import/prefer-default-export
export const headersInterceptor = (request, next) => {
next((response) => {
const headers = {};
response.headers.forEach((value, key) => {
headers[key] = value;
});
// eslint-disable-next-line no-param-reassign
response.headers = headers;
});
};
|