From 60b00b777462a8420862912389311e39d8a41581 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 7 Feb 2016 23:34:03 +0100 Subject: [PATCH] Change index into attribute. --- accountant/frontend/static/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accountant/frontend/static/js/app.js b/accountant/frontend/static/js/app.js index f4e69b2..7ac207c 100644 --- a/accountant/frontend/static/js/app.js +++ b/accountant/frontend/static/js/app.js @@ -31,7 +31,7 @@ var accountantApp = angular.module("accountantApp", [ if(token) { var token_type = $storage.get('token_type'); - config.headers["Authorization"] = authorization; + config.headers.Authorization = authorization; var authorization = token_type + ' ' + token; } return config;