From 05cbfae2993b2affacadb9e3146a7c9c7b0c9d8c Mon Sep 17 00:00:00 2001 From: Acha Bill Date: Tue, 27 Feb 2024 11:56:19 +0100 Subject: [PATCH] fix: wip --- pkg/api/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/router.go b/pkg/api/router.go index 7c854543b88..351608a5e16 100644 --- a/pkg/api/router.go +++ b/pkg/api/router.go @@ -220,7 +220,7 @@ func (s *Service) mountAPI() { handle("/chunks", jsonhttp.MethodHandler{ "POST": web.ChainHandlers( - jsonhttp.NewMaxBodyBytesHandler(swarm.ChunkWithSpanSize), + jsonhttp.NewMaxBodyBytesHandler(swarm.SocMaxChunkSize), web.FinalHandlerFunc(s.chunkUploadHandler), ), })