mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 14:58:33 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves https://github.com/fleetdm/confidential/issues/13934 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [ ] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [x] Added/updated automated tests - [ ] QA'd all new/changed functionality manually
12 lines
515 B
Go
12 lines
515 B
Go
package http
|
|
|
|
import "github.com/docker/go-units"
|
|
|
|
// WE need the default to be a var, since we want it configurable, and to avoid misses in the future we set it to the config value on startup/serve.
|
|
var MaxRequestBodySize int64 = units.MiB // Default which is 1 MiB
|
|
|
|
const (
|
|
// MaxMultipartFormSize represents how big the in memory elements is when parsing a multipart form data set,
|
|
// anything above that limit (primarily files) will be written to temp disk files
|
|
MaxMultipartFormSize int64 = 1 * units.MiB
|
|
)
|