When parsing a URL like "linkedin.com", the url object will add a default scheme of 'http' if one is not detected: URL.getScheme()
I can understand why some defaults were included but it would be nice if this behavior could be configured. I need to know whether the original input text contained the scheme.
I can always do something like url.getOriginalUrl().startsWith(url.getScheme()) but I don't want to have to do that everywhere.
When parsing a URL like "linkedin.com", the url object will add a default scheme of 'http' if one is not detected: URL.getScheme()
I can understand why some defaults were included but it would be nice if this behavior could be configured. I need to know whether the original input text contained the scheme.
I can always do something like url.getOriginalUrl().startsWith(url.getScheme()) but I don't want to have to do that everywhere.