From d87a862fbc8d7b100f4b3d31b28a8eac25c907ef Mon Sep 17 00:00:00 2001 From: Vladimir Shushlin Date: Fri, 25 Dec 2020 12:13:19 +0300 Subject: Allow DELETE HTTP method For some reason I forgot it the last time --- CHANGELOG | 4 ++++ VERSION | 2 +- internal/rejectmethods/middleware.go | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index d9ccde87..dd581c9c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +v 1.28.2 + +- Allow DELETE HTTP method + v 1.28.1 - Reject requests with unknown HTTP methods diff --git a/VERSION b/VERSION index 450a687b..bf4df28e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.28.1 +1.28.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, -- cgit v1.2.3