[BUGFIX] Headers where not correctly set when using token authentication

Hey guys, the cookbook was failing for me since yesterday; I don't know exactly why, but I noticed that the requests headers where not being set correctly.

Here is the fix, let me know if it is ok to merge.

Cheers