Skip to content

Commit

Permalink
fix: stream request body to allow big uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Jan 28, 2024
1 parent 5a8cd7f commit 50ebf0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ func NewHTTPServer(port int, anonymous bool, storage fileshare.AuthenticatedStor
s.tokens = tokens

s.app = fiber.New(fiber.Config{
Views: html.NewEngine(),
Views: html.NewEngine(),
StreamRequestBody: true,
ErrorHandler: func(ctx *fiber.Ctx, err error) error {
// prevent our errors from propagating, they have already been handled
if ok, _, _ := asHttpError(err); ok {
Expand Down

0 comments on commit 50ebf0c

Please sign in to comment.