diff options
author | Vitali Pikulik <v.pikulik@gmail.com> | 2020-08-21 16:21:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-21 16:21:23 +0200 |
commit | aa3f96c883322033099b4466c151893a3f9c2172 (patch) | |
tree | 40f2871e6c7f189a4846557f70e8065ba123682b /uri_test.go | |
parent | Travis doesn't seem to support tip anymore (diff) | |
download | fasthttp-aa3f96c883322033099b4466c151893a3f9c2172.tar.gz fasthttp-aa3f96c883322033099b4466c151893a3f9c2172.tar.bz2 fasthttp-aa3f96c883322033099b4466c151893a3f9c2172.zip |
Git commit fix URI parse for urls like host.dm?some/path/to/file (#866)
Diffstat (limited to 'uri_test.go')
-rw-r--r-- | uri_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/uri_test.go b/uri_test.go index 0a59db5..cebaa73 100644 --- a/uri_test.go +++ b/uri_test.go @@ -283,6 +283,10 @@ func TestURIParseNilHost(t *testing.T) { // missing slash after hostname testURIParseScheme(t, "http://foobar.com?baz=111", "http", "foobar.com", "/?baz=111", "") + + // slash in args + testURIParseScheme(t, "http://foobar.com?baz=111/222/xyz", "http", "foobar.com", "/?baz=111/222/xyz", "") + testURIParseScheme(t, "http://foobar.com?111/222/xyz", "http", "foobar.com", "/?111/222/xyz", "") } func testURIParseScheme(t *testing.T, uri, expectedScheme, expectedHost, expectedRequestURI, expectedHash string) { |