mirror of
https://gitee.com/gitea/gitea
synced 2025-11-04 00:20:25 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user