diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2021-10-01 13:33:42 +0200 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2021-10-01 13:38:31 +0200 |
commit | 542a203b42a3cb722244e1ef74fda0804a926383 (patch) | |
tree | 5690b21323c3ae6a779603e4ac3a21c1bada9a85 /allocation_test.go | |
parent | feat: improve TCPDialer by `sync.map` instead of `map+mutex` (#1106) (diff) | |
download | fasthttp-542a203b42a3cb722244e1ef74fda0804a926383.tar.gz fasthttp-542a203b42a3cb722244e1ef74fda0804a926383.tar.bz2 fasthttp-542a203b42a3cb722244e1ef74fda0804a926383.zip |
Properly parse URI
Use URI parse code based on net/uri to validate hostnames.
Diffstat (limited to 'allocation_test.go')
-rw-r--r-- | allocation_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/allocation_test.go b/allocation_test.go index 919233f..56c922b 100644 --- a/allocation_test.go +++ b/allocation_test.go @@ -71,7 +71,7 @@ func TestAllocationClient(t *testing.T) { } func TestAllocationURI(t *testing.T) { - uri := []byte("http://username:password@example.com/some/path?foo=bar#test") + uri := []byte("http://username:password@hello.%e4%b8%96%e7%95%8c.com/some/path?foo=bar#test") n := testing.AllocsPerRun(100, func() { u := AcquireURI() |