nager / Nager.PublicSuffix

.NET public suffix domain parser
MIT License
155 stars 22 forks source link

doesn't work with some http URLs #34

Closed d668 closed 5 years ago

d668 commented 5 years ago
var url = "http://www.algida.hu/";
var domainParser = new DomainParser(new WebTldRuleProvider());
var parts = domainParser.Get(url);

parts is null

d668 commented 5 years ago
var url = "http://www.algida.hu/"
.Replace("http://", "https://");

This fixes it, clearly a bug

tinohager commented 5 years ago

http:// is not a part of the domain name, it is a part of the url