Skip to content

How to set content-type header when streaming? #2770

Answered by yusukebe
PierBover asked this question in Q&A
Discussion options

You must be logged in to vote

HI @PierBover

You can use context.header():

context.header('Content-Type', 'text/html; charset=UTF-8')

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PierBover
Comment options

@yusukebe
Comment options

Answer selected by PierBover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants