This commit is contained in:
Stefan Baebler 2019-08-28 13:58:08 +02:00
parent 0f669d8918
commit 2002b65728
1 changed files with 4 additions and 4 deletions

View File

@ -1441,10 +1441,10 @@ func TestParseErrors(t *testing.T) {
{"mysql://x@y(z:123)/foo", true}, // not well-formed per RFC 3986, golang.org/issue/33646
{"mysql://x@y(1.2.3.4:123)/foo", true},
{" http://foo.com", true}, // invalid character in schema
{"ht tp://foo.com", true}, // invalid character in schema
{"ahttp://foo.com", false}, // valid schema characters
{"1http://foo.com", true}, // invalid character in schema
{" http://foo.com", true}, // invalid character in schema
{"ht tp://foo.com", true}, // invalid character in schema
{"ahttp://foo.com", false}, // valid schema characters
{"1http://foo.com", true}, // invalid character in schema
{"http://[]%20%48%54%54%50%2f%31%2e%31%0a%4d%79%48%65%61%64%65%72%3a%20%31%32%33%0a%0a/", true}, // golang.org/issue/11208
{"http://a b.com/", true}, // no space in host name please