aboutsummaryrefslogtreecommitdiff
path: root/allocation_test.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-10-01 13:33:42 +0200
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-10-01 13:38:31 +0200
commit542a203b42a3cb722244e1ef74fda0804a926383 (patch)
tree5690b21323c3ae6a779603e4ac3a21c1bada9a85 /allocation_test.go
parentfeat: improve TCPDialer by `sync.map` instead of `map+mutex` (#1106) (diff)
downloadfasthttp-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.go2
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()