aboutsummaryrefslogtreecommitdiff
path: root/uri_test.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-22 20:18:19 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-22 20:18:19 +0200
commitea8a7f54d5d39461da355203ed90fc9309584855 (patch)
treef9ae6ba665d44282b0f53b9d8337bd30b3035676 /uri_test.go
parentDo not escape the most frequently used chars in uri path such as ':~=,' (diff)
downloadfasthttp-ea8a7f54d5d39461da355203ed90fc9309584855.tar.gz
fasthttp-ea8a7f54d5d39461da355203ed90fc9309584855.tar.bz2
fasthttp-ea8a7f54d5d39461da355203ed90fc9309584855.zip
Do not escape '-' and '_' in url path and query args
Diffstat (limited to 'uri_test.go')
-rw-r--r--uri_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/uri_test.go b/uri_test.go
index 13ef871..5362910 100644
--- a/uri_test.go
+++ b/uri_test.go
@@ -7,7 +7,7 @@ import (
func TestURIPathEscape(t *testing.T) {
testURIPathEscape(t, "/foo/bar", "/foo/bar")
- testURIPathEscape(t, "/foo=b:ar,b.c&q", "/foo=b:ar,b.c&q")
+ testURIPathEscape(t, "/f_o-o=b:ar,b.c&q", "/f_o-o=b:ar,b.c&q")
testURIPathEscape(t, "/aa?bb.тест~qq", "/aa%3Fbb.%D1%82%D0%B5%D1%81%D1%82~qq")
}