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:
parent
fbc9afc81c
commit
3191203bfd
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue