From 1cfa2980055ffb9e217b6f5eb4f5fc5cc9b0fc33 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 6 Apr 2020 15:24:48 +0200 Subject: nginx_config: allow DELETE requests --- nginx_config | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nginx_config b/nginx_config index e6081ba..8a70167 100644 --- a/nginx_config +++ b/nginx_config @@ -22,8 +22,7 @@ server { ssl_verify_client on; # only allow upload requests - # TODO: handle DELETE - if ($request_method !~ ^(POST|PUT)$) { + if ($request_method !~ ^(POST|PUT|DELETE)$) { return 405; # Method Not Allowed } -- cgit v1.2.3