feat(api): add --api-body-limit flag that set the body limit for multipart/form-data requests

This commit is contained in:
Julien Neuhart
2024-09-29 17:46:20 +02:00
parent 10a290b065
commit fe40f3727b
8 changed files with 193 additions and 29 deletions

View File

@@ -462,7 +462,7 @@ func TestContextMiddleware(t *testing.T) {
c.Set("trace", "foo")
c.Set("startTime", time.Now())
err := contextMiddleware(gotenberg.NewFileSystem(), time.Duration(10)*time.Second, downloadFromConfig{})(tc.next)(c)
err := contextMiddleware(gotenberg.NewFileSystem(), time.Duration(10)*time.Second, 0, downloadFromConfig{})(tc.next)(c)
if tc.expectErr && err == nil {
t.Errorf("test %d: expected error but got: %v", i, err)