winlin

add crossdomain support for http error

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