From 1c68d457f134f067ccc8e4a298ab2dc38d748f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mazeau?= Date: Thu, 3 Nov 2022 15:16:58 +0100 Subject: [PATCH] internal/appsec: fix lint --- internal/appsec/dyngo/instrumentation/httpsec/http.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/appsec/dyngo/instrumentation/httpsec/http.go b/internal/appsec/dyngo/instrumentation/httpsec/http.go index dcd885cf8c..3b64bf7ce9 100644 --- a/internal/appsec/dyngo/instrumentation/httpsec/http.go +++ b/internal/appsec/dyngo/instrumentation/httpsec/http.go @@ -302,7 +302,9 @@ func IPFromRequest(r *http.Request) netaddrIP { } var ( + // BlockedTemplateJSON is the default JSON template used to write responses for blocked requests BlockedTemplateJSON = []byte(`{"errors": [{"title": "You've been blocked", "detail": "Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}]}`) + // BlockedTemplateHTML is the default HTML template used to write responses for blocked requests BlockedTemplateHTML = []byte(` You've been blocked

Sorry, you cannot access this page. Please contact the customer service team.

`) )