HTTPRequest.headers is a (str,str) dictionary.

Throughout the whole code, it is assumed of the value to be a string.
Nevertheless, in HTTPRequest.authorize() an int was assigned, leading
to nasty exceptions occuring in strange moments.