That's good advice, unfortunately in this particular case there was very limited help for dealing with relative URIs in the .NET parsing libraries so I had to look for alternatives. This is a slippery slope, having a look at the last comment in 4.2, I poked around with that example:
https://tools.ietf.org/html/rfc3986#section-4.2
>>> from urllib.parse import urlparse
>>> urlparse("http:
google.com")
ParseResult(scheme='http', netloc='', path='
google.com', params='', query='', fragment='')
>>> urlparse("https:
google.com")
ParseResult(scheme='https', netloc='', path='
google.com', params='', query='', fragment='')
The following two location headers behave very differently in Chrome (88)
It seems inconsistent, is that intended behaviour or is it perhaps a bug?
When it comes to libraries for URL parsing, it's true what they sing. ♫ I still haven't found what I'm looking for ♫
Best,
André