From 716580b23cb8bbd862bb8d4475b5ccd5b1d801c5 Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Mon, 29 Jul 2024 09:42:15 +0100 Subject: [PATCH] Use the max response default byte size Both respone and request defaults were 0, so functionally there's no change here. --- internal/cmd/deploy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/deploy.go b/internal/cmd/deploy.go index 553f562..a5a9813 100644 --- a/internal/cmd/deploy.go +++ b/internal/cmd/deploy.go @@ -45,7 +45,7 @@ func newDeployCommand() *deployCommand { deployCommand.cmd.Flags().BoolVar(&deployCommand.args.TargetOptions.BufferingEnabled, "buffer", false, "Enable buffering") deployCommand.cmd.Flags().Int64Var(&deployCommand.args.TargetOptions.MaxMemoryBufferSize, "buffer-memory", server.DefaultMaxMemoryBufferSize, "Max size of memory buffer") deployCommand.cmd.Flags().Int64Var(&deployCommand.args.TargetOptions.MaxRequestBodySize, "max-request-body", server.DefaultMaxRequestBodySize, "Max size of request body when buffering (default of 0 means unlimited)") - deployCommand.cmd.Flags().Int64Var(&deployCommand.args.TargetOptions.MaxResponseBodySize, "max-response-body", server.DefaultMaxRequestBodySize, "Max size of response body when buffering (default of 0 means unlimited)") + deployCommand.cmd.Flags().Int64Var(&deployCommand.args.TargetOptions.MaxResponseBodySize, "max-response-body", server.DefaultMaxResponseBodySize, "Max size of response body when buffering (default of 0 means unlimited)") deployCommand.cmd.MarkFlagRequired("target")