Change index into attribute.

This commit is contained in:
Alexis Lahouze 2016-02-07 23:34:03 +01:00
parent f5e914510c
commit 60b00b7774
1 changed files with 1 additions and 1 deletions

View File

@ -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;