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:
parent
b71eb0d49a
commit
133a6f0dbf
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue