Skip to content

Commit

Permalink
Update log/loki.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan <2103732+codebien@users.noreply.github.com>
  • Loading branch information
mstoykov and codebien committed Jul 28, 2021
1 parent fd89d94 commit 1445660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/loki.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func (h *lokiHook) createPushMessage(msgs []tmpMsg, cutOffIndex, dropped int) *l
func (h *lokiHook) push(b bytes.Buffer) error {
body := b.Bytes()

req, err := http.NewRequestWithContext(context.Background(), "POST", h.addr, &b)
req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, h.addr, &b)
if err != nil {
return err
}
Expand Down

0 comments on commit 1445660

Please sign in to comment.