mirror of https://github.com/adamdruppe/arsd.git
charset should be set on content type
This commit is contained in:
parent
a128370a24
commit
f11a3de560
2
web.d
2
web.d
|
@ -1140,7 +1140,7 @@ void run(Provider)(Cgi cgi, Provider instantiation, size_t pathInfoStartingPoint
|
|||
case "document":
|
||||
case "html":
|
||||
default:
|
||||
cgi.setResponseContentType("text/html");
|
||||
cgi.setResponseContentType("text/html; charset=utf-8");
|
||||
|
||||
if(result.result.type == JSON_TYPE.STRING) {
|
||||
auto returned = result.result.str;
|
||||
|
|
Loading…
Reference in New Issue