mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
vmalert: accept http.StatusOK for remotewrite (#1550)
This commit is contained in:
parent
f46a73dcdd
commit
f4cecaf296
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ func (c *Client) send(ctx context.Context, data []byte) error {
|
|||
req.URL, err, len(data), r.Size())
|
||||
}
|
||||
defer func() { _ = resp.Body.Close() }()
|
||||
if resp.StatusCode != http.StatusNoContent {
|
||||
if resp.StatusCode != http.StatusNoContent && resp.StatusCode != http.StatusOK {
|
||||
body, _ := ioutil.ReadAll(resp.Body)
|
||||
return fmt.Errorf("unexpected response code %d for %s. Response body %q",
|
||||
resp.StatusCode, req.URL, body)
|
||||
|
|
Loading…
Reference in a new issue