From a13dfffd5c42ad8e1841bd56f52fe326d627a55a Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 17 Feb 2023 22:25:23 +0100 Subject: [PATCH] fix(http): default upload max size --- pkg/http/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/http/options.go b/pkg/http/options.go index c136f5a..b84dce3 100644 --- a/pkg/http/options.go +++ b/pkg/http/options.go @@ -26,7 +26,7 @@ func defaultHandlerOptions() *HandlerOptions { Bus: memory.NewBus(), SockJS: sockjsOptions, ServerModuleFactories: make([]app.ServerModuleFactory, 0), - UploadMaxFileSize: 1024 * 10, // 10Mb + UploadMaxFileSize: 10 << (10 * 2), // 10Mb } }