gitlab-org--gitlab-foss/spec/javascripts/helpers/vue_resource_helper.js
2018-06-20 14:28:28 +02:00

10 lines
283 B
JavaScript

// 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;
});
response.headers = headers;
});
};