From 5a93bedf72c7ac1d609c3e3c42adac535ecec448 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 22 Jan 2015 23:51:22 +0900 Subject: [PATCH] nghttpx: Make error page modern --- src/shrpx_http.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/shrpx_http.cc b/src/shrpx_http.cc index 1c158504..7f2fcb64 100644 --- a/src/shrpx_http.cc +++ b/src/shrpx_http.cc @@ -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 += ""; + res += "<!DOCTYPE html><html lang=en><title>"; res += status; - res += "

"; + res += "

"; res += status; - res += "


"; + res += "
"; - res += ""; + res += ""; return res; }