Include text/html in content-type for error status response

This commit is contained in:
Tatsuhiro Tsujikawa 2012-05-19 17:01:11 +09:00
parent 3be09efbde
commit 8b8d79eeff
1 changed files with 2 additions and 0 deletions

View File

@ -450,6 +450,8 @@ void prepare_status_response(Request *req, SpdyEventHandler *hd,
data_prd.read_callback = file_read_callback; data_prd.read_callback = file_read_callback;
std::vector<std::pair<std::string, std::string> > headers; std::vector<std::pair<std::string, std::string> > headers;
headers.push_back(std::make_pair("content-encoding", "gzip")); headers.push_back(std::make_pair("content-encoding", "gzip"));
headers.push_back(std::make_pair("content-type",
"text/html; charset=UTF-8"));
hd->submit_response(status, req->stream_id, headers, &data_prd); hd->submit_response(status, req->stream_id, headers, &data_prd);
} }
} }