avoid some failure in decorator spec with request.host sometimes define