diff options
| author | Alejandro Colomar <alx@nginx.com> | 2023-08-24 14:09:18 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2023-12-19 15:02:41 +0100 |
| commit | 04e9f235ddbb3ae1343897f755c9ccf80c99f021 (patch) | |
| tree | 35fc6acd1b4a5cf338764fc5acfd07b17f4bd85b /src/nxt_conf_validation.c | |
| parent | 22dc158a03762c22d75fca7500c32799130f21a7 (diff) | |
| download | unit-04e9f235ddbb3ae1343897f755c9ccf80c99f021.tar.gz unit-04e9f235ddbb3ae1343897f755c9ccf80c99f021.tar.bz2 | |
HTTP: compress: added configurable threshold for Content-Length.
With this, short responses, that is, responses with a body of up to
content_length_threshold bytes, won't be compressed. The default value
is 20, as in NGINX.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'src/nxt_conf_validation.c')
| -rw-r--r-- | src/nxt_conf_validation.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c index 4943c603..7e1da709 100644 --- a/src/nxt_conf_validation.c +++ b/src/nxt_conf_validation.c @@ -1161,6 +1161,9 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_compress_members[] = { }, { .name = nxt_string("level"), .type = NXT_CONF_VLDT_INTEGER, + }, { + .name = nxt_string("min_length"), + .type = NXT_CONF_VLDT_INTEGER, }, NXT_CONF_VLDT_END |
