dhruvrajvanshi / Moonshine

Web framework for Crystal language [DEPRECATED in favour of kemal]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Charset

nik736 opened this issue · comments

Hi,
is it possible to set a charset header?

You can set do response.headers["Content-type"] = "whatever;charset=utf-8".
If you need to set it on a global level, you can create middleware that can set the header for every outgoing response.

Did I answer your question? Can I close this now?

Yep, sure, sorry and thanks.