From f4c83db70c5b1e916127f24b82c47505c0e4efaa Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Wed, 9 Jul 2025 06:33:17 -0400 Subject: [PATCH 1/2] Ensure content type header is set --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index e8cc7c1..530d97e 100644 --- a/main.go +++ b/main.go @@ -335,6 +335,8 @@ func (bc *CaptchaProtect) serveChallengePage(rw http.ResponseWriter, destination "Destination": destination, } + rw.Header().Set("Content-Type", "text/html; charset=utf-8") + // have to write http status before executing the template // otherwise a 200 will get served by the template execution rw.WriteHeader(bc.config.ChallengeStatusCode) From 614174cf3ad156179cf270357a42778a31a98bdc Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Wed, 9 Jul 2025 06:35:41 -0400 Subject: [PATCH 2/2] bump version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d5f123a..e44145d 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ services: --providers.docker=true --providers.docker.network=default --experimental.plugins.captcha-protect.modulename=github.com/libops/captcha-protect - --experimental.plugins.captcha-protect.version=v1.9.2 + --experimental.plugins.captcha-protect.version=v1.9.4 volumes: - /var/run/docker.sock:/var/run/docker.sock:z - /CHANGEME/TO/A/HOST/PATH/FOR/STATE/FILE:/tmp/state.json:rw