fixing setting Authorization header issue