Check http scheme as well

Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
Heath Stewart 2024-08-15 22:52:13 -07:00
parent 81f3526740
commit 6b9a0aa89f
No known key found for this signature in database

View file

@ -168,6 +168,11 @@ func TestDisplayURL(t *testing.T) {
url: "https://github.com/cli/cli/issues/9470?q=is:issue#issue-command",
want: "https://github.com/cli/cli/issues/9470",
},
{
name: "preserve http protocol use despite insecure",
url: "http://github.com/cli/cli/issues/9470",
want: "http://github.com/cli/cli/issues/9470",
},
}
for _, tt := range tests {