Update HTTP authorization when needed+remove redundant casting