Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleygo committed Oct 16, 2023
1 parent 33c736a commit 451bb24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/vmalert/remotewrite/client.go
Expand Up @@ -280,7 +280,10 @@ func (c *Client) send(ctx context.Context, data []byte) error {
req.Header.Set("X-Prometheus-Remote-Write-Version", "0.1.0")

if c.authCfg != nil {
c.authCfg.SetHeaders(req, true)
err = c.authCfg.SetHeaders(req, true)
if err != nil {
return &nonRetriableError{err: err}
}
}
if !*disablePathAppend {
req.URL.Path = path.Join(req.URL.Path, "/api/v1/write")
Expand Down

0 comments on commit 451bb24

Please sign in to comment.