1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-09 03:57:19 +00:00

Handle insecure and ports in go get (#7041)

* Handle insecure and ports in go get

* Fix IsExternalURL for non-standard ports
This commit is contained in:
zeripath
2019-05-27 22:08:38 +01:00
committed by GitHub
parent 9ca7fcddbb
commit 69d81b6569
4 changed files with 16 additions and 4 deletions

View File

@ -46,7 +46,7 @@ func TestURLJoin(t *testing.T) {
}
func TestIsExternalURL(t *testing.T) {
setting.Domain = "try.gitea.io"
setting.AppURL = "https://try.gitea.io"
type test struct {
Expected bool
RawURL string