tarantool / nginx_upstream_module

Tarantool NginX upstream module (REST, JSON API, websockets, load balancing)
Other
174 stars 18 forks source link

Restful delete request failed #68

Closed Sulverus closed 7 years ago

Sulverus commented 7 years ago
location /api {
      # answers check infinity timeout
      tnt_read_timeout 60m;
      tnt_method "delete";
      tnt_http_rest_methods delete get;
      tnt_http_methods all;
      tnt_multireturn_skip_count 2;
      tnt_pure_result on;
      tnt_pass_http_request on parse_args;
      tnt_pass tnt;
    }

Request: DELETE /api/1/user/1 without body

Response:

{"error":{"code":-32700,"message":"invalid json"}}

Please fix it

dedok commented 7 years ago

It was not a bug, it was a wrong version, the version without this feature