diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index c75ddb849..3bdecce5d 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1574,7 +1574,7 @@ ngx_http_test_content_type(ngx_http_request_t *r, ngx_hash_t *types_hash) return (void *) 4; } - if (r->headers_out.content_type.len == 0) { + if (r->headers_out.content_type_len == 0) { return NULL; }