Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
My comment from that PR -> "Actually that is a good point, build_absolute_uri with a None location, basically boils down to the same thing as get_raw_uri plus a little bit of logic to maybe throw the DisallowedHost exception. If we are just going to truck right through that then we should skip the ceremony and use get_raw_uri from the get-go. The only difference is that get_raw_uri returns a string and build_absolute_uri calls iri_to_uri on the string before returning. That extra call I don't think actually matters for our use case as we should theoretically accept full UTF-8 URLs even if that isn't what browsers work with."
- Loading branch information