

def add_default_headers(self, headers):
    headers['Accept'] = 'application/json'
    headers['Content-Type'] = 'application/json; charset=UTF-8'
    headers['X-Api-Version'] = API_VERSION
    user_b64 = base64.b64encode(b(('%s:%s' % (self.user_id, self.key))))
    headers['Authorization'] = ('Basic %s' % headers.decode('utf-8'))
    return headers

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/joyent.py JoyentConnection.add_default_headers/VarMisuse@65/111 `user_b64`->`headers`