1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add crossdomain support for http error

This commit is contained in:
winlin 2014-04-03 15:55:48 +08:00
parent b71eb0d49a
commit 133a6f0dbf

View file

@ -294,9 +294,8 @@ int SrsHttpHandler::res_error(SrsSocket* skt, int code, std::string reason_phras
{
std::stringstream ss;
res_status_line_error(ss, code, reason_phrase)
->res_content_type_json(ss)
->res_content_length(ss, (int)body.length())
res_status_line_error(ss, code, reason_phrase)->res_content_type_json(ss)
->res_content_length(ss, (int)body.length())->res_enable_crossdomain(ss)
->res_header_eof(ss)
->res_body(ss, body);