Fix ValidMethod for ActivityHandler

This commit is contained in:
Marius Orcsik 2019-06-01 09:19:57 +02:00
parent 1698b2c51e
commit a4c7cd9ab9

View file

@ -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