summaryrefslogtreecommitdiff
path: root/spec/javascripts/helpers/vue_resource_helper.js
blob: 70b7ec4e574f19767047f05a703463521de939bd (plain)
1
2
3
4
5
6
7
8
9
10
// 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;
  });
};