nghttpx: Make error page modern

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-22 23:51:22 +09:00
parent 4a0dba08b9
commit 5a93bedf72
1 changed files with 4 additions and 5 deletions

View File

@ -40,16 +40,15 @@ std::string create_error_html(unsigned int status_code) {
std::string res;
res.reserve(512);
auto status = http2::get_status_string(status_code);
res += "<html><head><title>";
res += "<!DOCTYPE html><html lang=en><title>";
res += status;
res += "</title></head><body><h1>";
res += "</title><body><h1>";
res += status;
res += "</h1><hr><address>";
res += "</h1><footer>";
res += get_config()->server_name;
res += " at port ";
res += util::utos(get_config()->port);
res += "</address>";
res += "</body></html>";
res += "</footer></body></html>";
return res;
}