golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 266 forks source link

Allow usernames within package names #585

Open hrathod-twitch opened 5 years ago

hrathod-twitch commented 5 years ago

When a vanity service returns a package name with a username, such as ssh://git@example.com/org/package, the gddo-server fails to import data. To fix this, the username part of the package name should be ignored when checking for valid hostnames.