On Fri Feb 2 18:45:42 2024 +0000, Jacek Caban wrote:
I think that URL parsing should be avoided and delegated to urlmon whenever possible. There are a number of corner cases, especially with pluggable protocols around (sure, maybe this case is simple, but still). Ideally there would be some urlmon API that would give you what you need, but I didn't see one after a quick search. `IUriBuilder` should be easy to use, you may just use it to remove path and query fragments.
I'd also consider moving it to `get_origin` and generate on demand.