diff options
author | kinggo <lilong.21@bytedance.com> | 2023-02-01 13:51:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 06:51:12 +0100 |
commit | 776a4c721e8c58bb10d73f2c8e1162376de000da (patch) | |
tree | aa52def3d0e645b804ef4f1c41e93f712c9d80ca /uri_windows_test.go | |
parent | clear dst bodyRaw before copy (#1476) (diff) | |
download | fasthttp-776a4c721e8c58bb10d73f2c8e1162376de000da.tar.gz fasthttp-776a4c721e8c58bb10d73f2c8e1162376de000da.tar.bz2 fasthttp-776a4c721e8c58bb10d73f2c8e1162376de000da.zip |
fix: modify normalizePath (#1478)
Diffstat (limited to 'uri_windows_test.go')
-rw-r--r-- | uri_windows_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/uri_windows_test.go b/uri_windows_test.go index ef8a74b..7e66968 100644 --- a/uri_windows_test.go +++ b/uri_windows_test.go @@ -12,4 +12,12 @@ func TestURIPathNormalizeIssue86(t *testing.T) { var u URI testURIPathNormalize(t, &u, `C:\a\b\c\fs.go`, `C:\a\b\c\fs.go`) + + testURIPathNormalize(t, &u, `a`, `/a`) + + testURIPathNormalize(t, &u, "/../../../../../foo", "/foo") + + testURIPathNormalize(t, &u, "/..\\..\\..\\..\\..\\", "/") + + testURIPathNormalize(t, &u, "/..%5c..%5cfoo", "/foo") } |