remove the duplicated http status line when error
This commit is contained in:
parent
818c1f1520
commit
f2216691f9
|
|
@ -293,9 +293,6 @@ int SrsHttpHandler::res_json(SrsSocket* skt, std::string json)
|
||||||
int SrsHttpHandler::res_error(SrsSocket* skt, int code, std::string reason_phrase, std::string body)
|
int SrsHttpHandler::res_error(SrsSocket* skt, int code, std::string reason_phrase, std::string body)
|
||||||
{
|
{
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
|
||||||
ss << "HTTP/1.1 " << code << " " << reason_phrase << __CRLF
|
|
||||||
<< "Server: SRS/"RTMP_SIG_SRS_VERSION"" << __CRLF;
|
|
||||||
|
|
||||||
res_status_line_error(ss, code, reason_phrase)
|
res_status_line_error(ss, code, reason_phrase)
|
||||||
->res_content_type_json(ss)
|
->res_content_type_json(ss)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user