Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always convert visit's URL to a String before manipulation
It is convenient to be able to pass in URI objects to `visit`, but these need to be coerced to a string before actual usage. Most of visit's code paths would convert the incoming url to a string as-needed. However, the path used when `always_include_port` is enabled did not, causing an error where `URI.parse` would try to parse an existing URI object. This change consolidates the coercion to string at the entrypoint of the method.
- Loading branch information