Skip to content

Commit 05c0f92

Browse files
committed
feat(serverHandler/responseData): use path.Clean instead of path.Abs
Base path already absoluted, just use path.Clean instead
1 parent 72d2660 commit 05c0f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serverHandler/responseData.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func (h *aliasHandler) getResponseData(r *http.Request) (data *responseData, fsP
302302
tailSlash := rawReqPath[len(rawReqPath)-1] == '/'
303303

304304
reqPath := util.CleanUrlPath(rawReqPath[len(h.aliasPrefix):])
305-
reqFsPath, _ := filepath.Abs(h.root + reqPath)
305+
reqFsPath := filepath.Clean(h.root + reqPath)
306306

307307
status := http.StatusOK
308308

0 commit comments

Comments
 (0)