diff options
author | Oisin Canty <o.canty@f5.com> | 2021-05-26 16:48:11 +0000 |
---|---|---|
committer | Oisin Canty <o.canty@f5.com> | 2021-05-26 16:48:11 +0000 |
commit | d67a0c871157454d591fa1d2a8b2d831b32e4040 (patch) | |
tree | 310bb0c560551f2f6d3409f651bdb1d17ecc63b6 /src/nxt_conf_validation.c | |
parent | 81e31872e3d05c912551dbf1382e3c78f4f65f4b (diff) | |
download | unit-d67a0c871157454d591fa1d2a8b2d831b32e4040.tar.gz unit-d67a0c871157454d591fa1d2a8b2d831b32e4040.tar.bz2 |
Static: handled unknown MIME types when MIME-filtering active.
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r-- | src/nxt_conf_validation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c index 25f6f4fe..14066fb0 100644 --- a/src/nxt_conf_validation.c +++ b/src/nxt_conf_validation.c @@ -1220,7 +1220,7 @@ nxt_conf_vldt_mtypes_extension(nxt_conf_validation_t *vldt, dup_type = nxt_http_static_mtypes_hash_find(&ctx->hash, &ext); - if (dup_type != NULL) { + if (dup_type->length != 0) { return nxt_conf_vldt_error(vldt, "The \"%V\" file extension has been " "declared for \"%V\" and \"%V\" " "MIME types at the same time.", |