1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-06-07 00:51:41 +00:00

Tell the browser returned plain text is utf8.

This commit is contained in:
King_DuckZ 2017-04-26 20:11:42 +01:00
parent fbc9afc81c
commit 3191203bfd

View file

@ -34,7 +34,7 @@ namespace tawashi {
void PastieResponse::on_process() { void PastieResponse::on_process() {
auto env = cgi_env().query_string_split(); auto env = cgi_env().query_string_split();
if (env["m"] == "plain" or cgi_env().query_string().empty()) { if (env["m"] == "plain" or cgi_env().query_string().empty()) {
this->change_type(Response::ContentType, "text/plain"); this->change_type(Response::ContentType, "text/plain; charset=utf-8");
m_plain_text = true; m_plain_text = true;
} }
else { else {