Hello!

On Mon, Jan 27, 2014 at 6:00 AM, Jader H. Silva wrote:
>
> You need to set the content-type to this location. e.g.:
>
> add_header Content-Type text/plain;
>

Alternatively one can set the Content-Type response header directly in
Lua (which is more flexible):

    content_by_lua '
        ngx.header["Content-Type"] = "text/plain"
        ngx.say("hello world")
    ';

or use the default_type directive:

    default_type text/plain;
    content_by_lua '
        ngx.say("hello world")
    ';

Regards,
-agentzh

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to