diff options
author | Valentin Bartenev <vbart@nginx.com> | 2013-08-05 14:30:03 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2013-08-05 14:30:03 +0400 |
commit | 1b7bc342186ff0768c06419a134032adb2a536f8 (patch) | |
tree | 93094bea7ab69bcdbb708118d183ceffffcbee69 /src | |
parent | 3693daa20f13712afc413691a74c6116c5a5bce2 (diff) | |
download | nginx-1b7bc342186ff0768c06419a134032adb2a536f8.tar.gz nginx-1b7bc342186ff0768c06419a134032adb2a536f8.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_image_filter_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_image_filter_module.c b/src/http/modules/ngx_http_image_filter_module.c index c6c3b747a..6d3f47dcb 100644 --- a/src/http/modules/ngx_http_image_filter_module.c +++ b/src/http/modules/ngx_http_image_filter_module.c @@ -567,7 +567,7 @@ ngx_http_image_json(ngx_http_request_t *r, ngx_http_image_filter_ctx_t *ctx) 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) { |