Static: handled unknown MIME types when MIME-filtering active.

This commit is contained in:
Oisin Canty
2021-05-26 16:48:11 +00:00
parent 81e31872e3
commit d67a0c8711
3 changed files with 17 additions and 21 deletions

View File

@@ -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.",