Follow-up from "Fix no_proxy not working when DNS rebinding protection enabled"
In !120412 (merged), we are adding a method validate_url_with_proxy!
that returns a Result
object instead of a Array of elements. validate!
preserves backwards compatibility by unwrapping the Result
object into two elements. We should consolidate these methods and update all callers to handle the Result
.