From afda9cbb2d493c004dd4fa6b283eabf5befb0f16 Mon Sep 17 00:00:00 2001 From: Mark Theisen Date: Mon, 9 Jan 2017 17:18:53 +0100 Subject: [PATCH] Fix webhook username mismatch Fixing variable name mismatch so that the Authorization HTTP header is added to webhook notifications. --- pkg/services/alerting/notifiers/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/alerting/notifiers/webhook.go b/pkg/services/alerting/notifiers/webhook.go index 25ed22a65f55b..87868d331b2b1 100644 --- a/pkg/services/alerting/notifiers/webhook.go +++ b/pkg/services/alerting/notifiers/webhook.go @@ -50,7 +50,7 @@ func NewWebHookNotifier(model *m.AlertNotification) (alerting.Notifier, error) { return &WebhookNotifier{ NotifierBase: NewNotifierBase(model.Id, model.IsDefault, model.Name, model.Type, model.Settings), Url: url, - User: model.Settings.Get("user").MustString(), + User: model.Settings.Get("username").MustString(), Password: model.Settings.Get("password").MustString(), HttpMethod: model.Settings.Get("httpMethod").MustString("POST"), log: log.New("alerting.notifier.webhook"),