Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nginx config option to enable setting of response status code directly from Tarantool #116

Open
nordluf opened this issue Mar 29, 2018 · 1 comment

Comments

@nordluf
Copy link

nordluf commented Mar 29, 2018

It would be a good idea to have something like tnt_status_from_response on to Nginx config, what enables the ability to return from Tarantool status code and additional headers, like that: return data[, status=200 [, headers={}]]

@donbarthel
Copy link

nordluf:

The documentation (on the 'Code' tab) says "Sometimes you have to set status or headers which came from Tarantool. For this purpose, you have to use something like ngx_lua or ngx_perl, etc."

But I like your suggestion better, its much less complex.

Note for others: you can change the 'content-type' header, globally, by adding this nginx.conf directive:

default_type  application/json;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants