Unverified Commit 4aa4417d authored by Bryan's avatar Bryan Committed by GitHub

chore: allow all 20x response status code in webhook (#2947)

parent 606e574e
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment