Skip to content

tnt_http_rest_methods directive not disallowing DELETE #115

Closed
@donbarthel

Description

@donbarthel

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;
      }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions