Avoid redundant call to getToken()

Even without speaking about performance, I think this makes more sense.
Merge pull request #6 from Dorian/patch-1

Avoid redundant call to getToken()
Edited by Teddy Hyde (teddyhyde.com) at Dec 4, 2013 2:13:13 PM
Use a function to get the token

More reliable: the header is not a string but a function, so right before sending the request, Angular will call `getToken` and get the token
Merge pull request #1 from Dorian/patch-1

Last version on master