diff options
Diffstat (limited to 'src/http/modules/perl/nginx.xs')
| -rw-r--r-- | src/http/modules/perl/nginx.xs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs index 8e287a6b2..53b6a9230 100644 --- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -116,10 +116,8 @@ send_http_header(r, ...) } } else { - if (r->headers_out.content_type.len == 0) { - if (ngx_http_set_content_type(r) != NGX_OK) { - XSRETURN_EMPTY; - } + if (ngx_http_set_content_type(r) != NGX_OK) { + XSRETURN_EMPTY; } } |
