Skip to content

Commit

Permalink
fix: static file path parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
FGYFFFF committed Nov 25, 2024
1 parent 0e582ec commit d819596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ func (h *fsHandler) handleRequest(c context.Context, ctx *RequestContext) {
if h.pathRewrite != nil {
path = h.pathRewrite(ctx)
} else {
path = ctx.Path()
path = []byte(ctx.Param("filepath"))
}
path = stripTrailingSlashes(path)

Expand Down

0 comments on commit d819596

Please sign in to comment.