mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-15 01:54:03 +02:00
fix(notif): http 204 treated as error
This commit is contained in:
parent
f9a8aede20
commit
f1ba554a24
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ func (msg *LogMessage) notify(ctx context.Context, provider Provider) error {
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
switch resp.StatusCode {
|
switch resp.StatusCode {
|
||||||
case http.StatusOK, http.StatusCreated, http.StatusAccepted:
|
case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
|
||||||
body, _ := io.ReadAll(resp.Body)
|
body, _ := io.ReadAll(resp.Body)
|
||||||
logging.Debug().
|
logging.Debug().
|
||||||
Str("provider", provider.GetName()).
|
Str("provider", provider.GetName()).
|
||||||
|
|
Loading…
Add table
Reference in a new issue