From d3c85bd6bd6abbd20fab6882d7a47b631f3a5af0 Mon Sep 17 00:00:00 2001 From: Barry Carlyon | Kora Date: Fri, 24 Sep 2021 19:01:20 +0100 Subject: [PATCH] TIL I learned go needs " not ' --- internal/events/verify/subscription_verify.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/events/verify/subscription_verify.go b/internal/events/verify/subscription_verify.go index d1985170..d36a879f 100644 --- a/internal/events/verify/subscription_verify.go +++ b/internal/events/verify/subscription_verify.go @@ -94,10 +94,10 @@ func VerifyWebhookSubscription(p VerifyParameters) (VerifyResponse, error) { r.IsChallengeValid = false } - if resp.Header.Get('Content-Type') == 'text/plain' { - color.New().Add(color.FgGreen).Println(fmt.Sprintf(`✔ Valid content-type header. Received type %v`, resp.Header.Get('Content-Type'))) + if resp.Header.Get("Content-Type") == "text/plain" { + color.New().Add(color.FgGreen).Println(fmt.Sprintf(`✔ Valid content-type header. Received type %v`, resp.Header.Get("Content-Type"))) } else { - color.New().Add(color.FgRed).Println(fmt.Sprintf(`✗ Invalid content-type header. Received type %v`, resp.Header.Get('Content-Type'))) + color.New().Add(color.FgRed).Println(fmt.Sprintf(`✗ Invalid content-type header. Received type %v`, resp.Header.Get("Content-Type"))) } if resp.StatusCode >= 200 && resp.StatusCode <= 299 {