diff --git a/restapi/handlers/account-template-preview.go b/restapi/handlers/account-template-preview.go index 39d581a5fb244b661d909c3a55e3ad4a2f135fbd_cmVzdGFwaS9oYW5kbGVycy9hY2NvdW50LXRlbXBsYXRlLXByZXZpZXcuZ28=..99526703f8538635b8862f899ee14656a7760013_cmVzdGFwaS9oYW5kbGVycy9hY2NvdW50LXRlbXBsYXRlLXByZXZpZXcuZ28= 100644 --- a/restapi/handlers/account-template-preview.go +++ b/restapi/handlers/account-template-preview.go @@ -40,6 +40,12 @@ return template_management.NewAccountTemplatePreviewNotModified().WithETag(etag) } + mimetype := "image/png" + + if params.Format == "html" { + mimetype = "text/html" + } + documents, err := h.renderer.Render( ctx, principal.Subject, @@ -50,7 +56,7 @@ BodyFormat: template.BodyFormat, }, models.Metadata{}, - "image/png", + mimetype, false, ) if err != nil {