From 9e8a645474cc092ddb66b403d96e20cefd4ef73f Mon Sep 17 00:00:00 2001 From: Veloi <85405932+veloii@users.noreply.github.com> Date: Fri, 3 Nov 2023 11:08:36 +0000 Subject: [PATCH] fix: set content type correctly on gin example (#277) --- examples/integration-gin/renderer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/integration-gin/renderer.go b/examples/integration-gin/renderer.go index 6bf281058..a238ff53f 100644 --- a/examples/integration-gin/renderer.go +++ b/examples/integration-gin/renderer.go @@ -14,6 +14,7 @@ type TemplRender struct { } func (t TemplRender) Render(w http.ResponseWriter) error { + t.WriteContentType(w) w.WriteHeader(t.Code) if t.Data != nil { return t.Data.Render(context.Background(), w)