Skip to content

Commit

Permalink
FIX: allow sending larger files (>4MB of BodyLimit)
Browse files Browse the repository at this point in the history
  • Loading branch information
rigon committed Apr 18, 2023
1 parent a5837bd commit da728d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@ func main() {

// Server
app := fiber.New(fiber.Config{
RequestMethods: mergeWithoutDuplicates(fiber.DefaultMethods, WebDAVMethods),
UnescapePath: true,
RequestMethods: mergeWithoutDuplicates(fiber.DefaultMethods, WebDAVMethods),
UnescapePath: true,
StreamRequestBody: true, // For requests > BodyLimit(4MB), body is streamed
})

// Middlewares
Expand Down

0 comments on commit da728d9

Please sign in to comment.