aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-04-06 15:24:48 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-06 15:24:48 +0200
commit1cfa2980055ffb9e217b6f5eb4f5fc5cc9b0fc33 (patch)
tree69fff938a3e0b78a32876807cc8e7182da5e1f4b
parentec3d3c8c1f9e735ed49075ce22eef70512c9d717 (diff)
nginx_config: allow DELETE requests
-rw-r--r--nginx_config3
1 files changed, 1 insertions, 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
}