Mercurial > hg > nginx
changeset 5315:31932b5464f0
Image filter: use "application/json" MIME type for JSON output.
As it is defined by RFC 4627, and allows for various browser tools like
JSONView to display JSON well-formatted.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 05 Aug 2013 14:30:03 +0400 |
parents | 0300d97c6084 |
children | 12dd27b74117 |
files | src/http/modules/ngx_http_image_filter_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_image_filter_module.c Mon Aug 05 13:44:56 2013 +0400 +++ b/src/http/modules/ngx_http_image_filter_module.c Mon Aug 05 14:30:03 2013 +0400 @@ -567,7 +567,7 @@ ngx_http_clean_header(r); r->headers_out.status = NGX_HTTP_OK; - ngx_str_set(&r->headers_out.content_type, "text/plain"); + ngx_str_set(&r->headers_out.content_type, "application/json"); r->headers_out.content_type_lowcase = NULL; if (ctx == NULL) {