Changed the default value of the "actor" argument to "" (instead of None) in get_http_authorization_header; leaving it as None throws an error if you have no actor and try to do Nonce encoding.