mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
remove the duplicated http status line when error
This commit is contained in:
parent
818c1f1520
commit
f2216691f9
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
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_content_type_json(ss)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue