Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: allow all 20x response status code in webhook (#2947)
Bryan4aa4417d9147
diff --git a/plugin/webhook/webhook.go b/plugin/webhook/webhook.goindex 90f98a3d1..aadc5344d 100644--- a/plugin/webhook/webhook.go+++ b/plugin/webhook/webhook.go@@ -95,7 +95,7 @@ func Post(payload WebhookPayload) error {}defer resp.Body.Close()- if resp.StatusCode != http.StatusOK {+ if resp.StatusCode < 200 || resp.StatusCode > 299 {return errors.Errorf("failed to post webhook %s, status code: %d, response body: %s", payload.URL, resp.StatusCode, b)}