add response content type
This commit is contained in:
parent
c5316a41eb
commit
6358e2dac4
|
@ -75,6 +75,10 @@ location /skynet/stats {
|
||||||
location /nginx/stats {
|
location /nginx/stats {
|
||||||
include /etc/nginx/conf.d/include/cors;
|
include /etc/nginx/conf.d/include/cors;
|
||||||
|
|
||||||
|
charset utf-8;
|
||||||
|
charset_types application/json;
|
||||||
|
default_type application/json;
|
||||||
|
|
||||||
content_by_lua_block {
|
content_by_lua_block {
|
||||||
local json = require('cjson')
|
local json = require('cjson')
|
||||||
ngx.say(json.encode{
|
ngx.say(json.encode{
|
||||||
|
|
Reference in New Issue