Skip to content

Commit

Permalink
fix: ensure correct content type is used #8
Browse files Browse the repository at this point in the history
  • Loading branch information
cshawaus committed Mar 18, 2024
1 parent e275d4d commit 819add5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function configureAemProxy(aemUrl: string, options: PluginOptions) {
if (isHtmlModified) {
try {
res.setHeader('content-encoding', '')
res.setHeader('content-type', 'text/html')
res.setHeader('content-type', proxyHeaders['content-type'] ?? 'text/html;charset=utf-8')
res.removeHeader('content-length')
res.end(replacedHtml)

Expand Down

0 comments on commit 819add5

Please sign in to comment.