Pass headers correctly from server