mirror of https://github.com/gofiber/fiber.git
parent
b1aeec8c80
commit
2ebadb4c38
2
ctx.go
2
ctx.go
|
@ -856,6 +856,8 @@ func (ctx *Ctx) SendFile(file string, compress ...bool) error {
|
||||||
}
|
}
|
||||||
sendFileHandler = sendFileFS.NewRequestHandler()
|
sendFileHandler = sendFileFS.NewRequestHandler()
|
||||||
}
|
}
|
||||||
|
// Keep original path for mutable params
|
||||||
|
ctx.pathOriginal = utils.ImmutableString(ctx.pathOriginal)
|
||||||
// Disable compression
|
// Disable compression
|
||||||
if len(compress) <= 0 || !compress[0] {
|
if len(compress) <= 0 || !compress[0] {
|
||||||
// https://github.com/valyala/fasthttp/blob/master/fs.go#L46
|
// https://github.com/valyala/fasthttp/blob/master/fs.go#L46
|
||||||
|
|
Loading…
Reference in New Issue