chromium / hstspreload

🔒🔍 A Go package to scan sites against requirements for Chromium-maintained HSTS preload list.
https://hstspreload.org
BSD 3-Clause "New" or "Revised" License
114 stars 37 forks source link

Don't include port in `redirects.http.first_redirect.insecure` check #100

Closed lgarron closed 7 years ago

lgarron commented 7 years ago

URL.Host() includes the port number, but thanks to https://github.com/golang/go/issues/16142 we can now call URL.Hostname().