5 Feb
2024
5 Feb
'24
2:02 p.m.
On Fri Feb 2 18:55:12 2024 +0000, Jacek Caban wrote:
I'd also consider moving it to `get_origin` and generate on demand. So I tried a bunch of things but it turns out it's pointlessly too complicated for my liking, especially since I also have to remove the trailing slash (or else tests fail), which at that point I might as well parse the whole thing.
But InternetCrackUrl seems like the perfect fit, which is even simpler than my current parsing. We already use it in htmllocation.c so I think it should be fine for this purpose? I don't even have to special case the trailing slash. I think I'll go with that. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4986#note_60039