1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-11-05 09:05:07 -05:00

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

View File

@ -450,6 +450,8 @@ void prepare_status_response(Request *req, SpdyEventHandler *hd,
data_prd.read_callback = file_read_callback;
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-type",
"text/html; charset=UTF-8"));
hd->submit_response(status, req->stream_id, headers, &data_prd);
}
}