diff --git a/CHANGELOG.md b/CHANGELOG.md index c3735a4f..becca95c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 0.90.49 (06-12-2020) +- Added additional prometheus /metrics for better debugging + # 0.90.48 (06-11-2020) - Modified shutdown routine to make command exit with code 0 - Modified install.sh for correct installation diff --git a/types/services/samples.go b/types/services/samples.go index 011ccfcb..f3697ab6 100644 --- a/types/services/samples.go +++ b/types/services/samples.go @@ -109,6 +109,7 @@ func Samples() error { s6 := &Service{ Name: "Private Service", Domain: "https://push.statping.com", + Method: "GET", Interval: 30, Type: "http", Timeout: 120, diff --git a/utils/utils.go b/utils/utils.go index 87696d36..bd293b37 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -191,6 +191,9 @@ func DurationReadable(d time.Duration) string { func HttpRequest(url, method string, content interface{}, headers []string, body io.Reader, timeout time.Duration, verifySSL bool, customTLS *tls.Config) ([]byte, *http.Response, error) { var err error var req *http.Request + if method == "" { + method = "GET" + } t1 := Now() if req, err = http.NewRequest(method, url, body); err != nil { return nil, nil, err diff --git a/version.txt b/version.txt index f126da28..5a2ef2cc 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.90.48 +0.90.49