diff options
author | Vladimir Shushlin <v.shushlin@gmail.com> | 2020-12-25 12:11:08 +0300 |
---|---|---|
committer | Vladimir Shushlin <v.shushlin@gmail.com> | 2020-12-25 12:11:08 +0300 |
commit | 24d2e4b264bf03df98a64438ea90c383f299beb4 (patch) | |
tree | 68e39b007705e0c514c1139dae18fef1d611fb95 | |
parent | b355a41a4ab4a63789305cfe26474d4116fd0fe5 (diff) |
Allow DELETE HTTP method
For some reason I forgot it the last time
-rw-r--r-- | CHANGELOG | 4 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | internal/rejectmethods/middleware.go | 1 |
3 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ +v 1.30.2 + +- Allow DELETE HTTP method + v 1.30.1 - Reject requests with unknown HTTP methods @@ -1 +1 @@ -1.30.1 +1.30.2 diff --git a/internal/rejectmethods/middleware.go b/internal/rejectmethods/middleware.go index e76fc383..e78a0ce5 100644 --- a/internal/rejectmethods/middleware.go +++ b/internal/rejectmethods/middleware.go @@ -12,6 +12,7 @@ var acceptedMethods = map[string]bool{ http.MethodPost: true, http.MethodPut: true, http.MethodPatch: true, + http.MethodDelete: true, http.MethodConnect: true, http.MethodOptions: true, http.MethodTrace: true, |