diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-12-23 11:29:17 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-12-23 11:29:17 +0200 |
commit | 9d4cd451d9aa4915e1901841cafcb479f451b6cf (patch) | |
tree | a12e62c6263fa559b1651bfee5f6862140f84b37 /uri_test.go | |
parent | Moved appendQuotedPath to bytesconv (diff) | |
download | fasthttp-9d4cd451d9aa4915e1901841cafcb479f451b6cf.tar.gz fasthttp-9d4cd451d9aa4915e1901841cafcb479f451b6cf.tar.bz2 fasthttp-9d4cd451d9aa4915e1901841cafcb479f451b6cf.zip |
test URI.Update() with path containing non-ASCII chars
Diffstat (limited to 'uri_test.go')
-rw-r--r-- | uri_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/uri_test.go b/uri_test.go index 5362910..687c2cf 100644 --- a/uri_test.go +++ b/uri_test.go @@ -34,6 +34,7 @@ func TestURIUpdate(t *testing.T) { testURIUpdate(t, "http://foo.bar/baz/xxx.html?aaa=22#aaa", "bb.html?xx=12#pp", "http://foo.bar/baz/bb.html?xx=12#pp") testURIUpdate(t, "http://xx/a/b/c/d", "../qwe/p?zx=34", "http://xx/a/b/qwe/p?zx=34") testURIUpdate(t, "https://qqq/aaa.html?foo=bar", "?baz=434&aaa", "https://qqq/aaa.html?baz=434&aaa") + testURIUpdate(t, "http://foo.bar/baz", "~a/%20b=c,тест?йцу=ке", "http://foo.bar/~a/%20b=c,%D1%82%D0%B5%D1%81%D1%82?йцу=ке") } func testURIUpdate(t *testing.T, base, update, result string) { |