Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Jun 27, 2024
1 parent b3673a0 commit 4743fde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ type App struct {
// customConstraints is a list of external constraints
customConstraints []CustomConstraint
// sendfiles stores configurations for handling ctx.SendFile operations
sendfiles []*sendFileStore
sendfiles []*sendFileStore
// sendfilesMutex is a mutex used for sendfile operations
sendfilesMutex sync.RWMutex
}

Expand Down
4 changes: 0 additions & 4 deletions docs/api/ctx.md
Original file line number Diff line number Diff line change
Expand Up @@ -1689,10 +1689,6 @@ app.Get("/", func(c fiber.Ctx) error {

Transfers the file from the given path. Sets the [Content-Type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) response HTTP header field based on the **filenames** extension.

:::caution
Compression is not enabled by default. You need to pass config and enable `Compress` option.
:::

```go title="Config" title="Config"
// SendFile defines configuration options when to transfer file with SendFile.
type SendFile struct {
Expand Down

0 comments on commit 4743fde

Please sign in to comment.