diff options
author | Alejandro Colomar <alx@nginx.com> | 2023-08-28 17:34:20 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-12-19 15:02:41 +0100 |
commit | 9ec5c6013be752b8e069103a2ec7c9bff5b01679 (patch) | |
tree | e6caae1b7553ac281c58d20998f3f2ca936e6085 /src/nxt_conf_validation.c | |
parent | 04e9f235ddbb3ae1343897f755c9ccf80c99f021 (diff) | |
download | unit-9ec5c6013be752b8e069103a2ec7c9bff5b01679.tar.gz unit-9ec5c6013be752b8e069103a2ec7c9bff5b01679.tar.bz2 |
HTTP: compress: added "mime_types" rule.
Signed-off-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r-- | src/nxt_conf_validation.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c index 7e1da709..bae3efbd 100644 --- a/src/nxt_conf_validation.c +++ b/src/nxt_conf_validation.c @@ -1164,6 +1164,10 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_compress_members[] = { }, { .name = nxt_string("min_length"), .type = NXT_CONF_VLDT_INTEGER, + }, { + .name = nxt_string("mime_types"), + .type = NXT_CONF_VLDT_STRING | NXT_CONF_VLDT_ARRAY, + .validator = nxt_conf_vldt_match_patterns, }, NXT_CONF_VLDT_END |