Added doctype declaration.

This commit is contained in:
Relintai 2021-10-30 23:32:06 +02:00
parent b3c1b6ccac
commit 6aae520ed4
1 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,10 @@ const std::string &Request::get_parameter(const std::string &key) const {
}
void Request::compile_body() {
compiled_body.reserve(body.size() + head.size() + 13 + 14 + 15);
compiled_body.reserve(body.size() + head.size() + 15 + 13 + 14 + 15);
//15
compiled_body += "<!DOCTYPE html>";
//13
compiled_body += "<html>"