From a4c7cd9ab9398b8c9707c3e371643c9fbee9e6c2 Mon Sep 17 00:00:00 2001 From: Marius Orcsik Date: Sat, 1 Jun 2019 09:19:57 +0200 Subject: [PATCH] Fix ValidMethod for ActivityHandler --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index 5ede028..151a064 100644 --- a/handlers.go +++ b/handlers.go @@ -45,7 +45,7 @@ func (a ActivityHandlerFn) Storage(r *http.Request) (storage.ActivitySaver, erro // ValidMethod validates if the current handler can process the current request func (a ActivityHandlerFn) ValidMethod(r *http.Request) bool { - return r.Method != http.MethodPost + return r.Method == http.MethodPost } // ValidateRequest validates if the current handler can process the current request