Skip to content

Commit 69358ce

Browse files
acmeTartanLlama
andauthored
docs: add charset to content-type header in HTMLRewritingStream examples (#1215)
Co-authored-by: Sy Brand <[email protected]>
1 parent fda6ad3 commit 69358ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

documentation/docs/html-rewriter/HTMLRewritingStream/HTMLRewritingStream.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function handleRequest(event) {
3636
return new Response(body, {
3737
status: 200,
3838
headers: new Headers({
39-
"content-type": "text/html"
39+
"content-type": "text/html; charset=utf-8",
4040
})
4141
})
4242
}

documentation/docs/html-rewriter/HTMLRewritingStream/prototype/onElement.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function handleRequest(event) {
8181
return new Response(body, {
8282
status: 200,
8383
headers: new Headers({
84-
"content-type": "text/html"
84+
"content-type": "text/html; charset=utf-8",
8585
})
8686
})
8787
}

0 commit comments

Comments
 (0)