Fix #60: Fix undesired behavior when setting Host header

This commit is contained in:
TwinProduction
2020-12-18 17:37:03 -05:00
parent b35747bf31
commit ef9ba10e45
2 changed files with 11 additions and 0 deletions

View File

@ -96,6 +96,9 @@ func TestService_GetAlertsTriggered(t *testing.T) {
URL: "https://twinnation.org/health",
Conditions: []*Condition{&condition},
Alerts: []*Alert{{Type: PagerDutyAlert, Enabled: true}},
Headers: map[string]string{
"Host": "twinnation.org",
},
}
service.ValidateAndSetDefaults()
if service.NumberOfFailuresInARow != 0 {