aboutsummaryrefslogtreecommitdiff
path: root/fs_test.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-10-01 13:37:28 +0200
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-10-01 13:38:31 +0200
commitffab77a59d9ca1fe3add2f6501efd44a6669291b (patch)
treeaaf7a9f715cd1f5f813f2efbae1479628a18e7bc /fs_test.go
parentProperly parse URI (diff)
downloadfasthttp-ffab77a59d9ca1fe3add2f6501efd44a6669291b.tar.gz
fasthttp-ffab77a59d9ca1fe3add2f6501efd44a6669291b.tar.bz2
fasthttp-ffab77a59d9ca1fe3add2f6501efd44a6669291b.zip
Improve return value reusability documentation
Diffstat (limited to 'fs_test.go')
-rw-r--r--fs_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs_test.go b/fs_test.go
index 068c67c..c6e125c 100644
--- a/fs_test.go
+++ b/fs_test.go
@@ -60,7 +60,7 @@ func TestNewVHostPathRewriterMaliciousHost(t *testing.T) {
f := NewVHostPathRewriter(0)
path := f(&ctx)
- expectedPath := "/invalid-host/foo/bar/baz"
+ expectedPath := "/invalid-host/"
if string(path) != expectedPath {
t.Fatalf("unexpected path %q. Expecting %q", path, expectedPath)
}