Include text/html in content-type for error status response
This commit is contained in:
parent
3be09efbde
commit
8b8d79eeff
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue