Fixed error callback removing host headers