On Fri Oct 25 13:31:46 2024 +0000, Nikolay Sivov wrote:
Why do you need this?
`normalize_uri_scheme` to turn httpd:// into http:// and httpsd:// into https://, `recreate_url` to add the port to the url.
I figured using `WinHttpCrackUrl` and re-combining the parts together with the port would be cleaner than trying to find where the hostname ends manually and splicing the port in at that point.