Check http scheme as well
Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
parent
81f3526740
commit
6b9a0aa89f
1 changed files with 5 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue