apparently http.Error requires a plaintext response

This commit is contained in:
Branden J Brown 2024-01-21 20:32:39 -06:00
parent 44a34fcba7
commit 8c35ea1bcd
1 changed files with 4 additions and 8 deletions

View File

@ -32,11 +32,7 @@ func NeedsConsent(next http.Handler) http.Handler {
}) })
} }
const cookieFailed = `<!DOCTYPE html> const cookieFailed = `
<html> The requested resource requires consent to processing identifying information and storying necessary cookies.
<body> I'm just a lil guy. The information is used solely for providing the service's functionality.
<h1>Consent required</h1> `
<p>The requested resource requires consent to processing identifying information and storying necessary cookies.</p>
<p>I'm just a lil guy. The information is used solely for providing the service's functionality.</p>
</body>
</html>`