mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(coderd/debug): putDeploymentHealthSettings: use 204 instead of 304 if not modified (#11048)
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ func (c *Client) PutHealthSettings(ctx context.Context, settings HealthSettings)
|
||||
}
|
||||
defer res.Body.Close()
|
||||
|
||||
if res.StatusCode == http.StatusNotModified {
|
||||
if res.StatusCode == http.StatusNoContent {
|
||||
return xerrors.New("health settings not modified")
|
||||
}
|
||||
if res.StatusCode != http.StatusOK {
|
||||
|
||||
Reference in New Issue
Block a user