Closed
Description
I have the tnt_http_rest_methods directive defined thus:
tnt_http_rest_methods get post;
Notice no 'delete' is specified. However, when I send a DELETE request, the call is passed through to my Lua function.
I expected the request to be rejected. Do I misunderstand the purpose of this directive?
The full definition in nginx.conf is:
location /api/v1/users {
# REST mode on
tnt_http_rest_methods get post;
# Pass http headers and uri
tnt_pass_http_request on;
# Module on
tnt_pass backend;
tnt_method v1_users;
}