mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2024-11-27 00:43:47 +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() {
|
||||
auto env = cgi_env().query_string_split();
|
||||
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;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue