From f2216691f91c639066cc444acf6e82e316296bbd Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 3 Apr 2014 15:20:24 +0800 Subject: [PATCH] remove the duplicated http status line when error --- trunk/src/app/srs_app_http.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/trunk/src/app/srs_app_http.cpp b/trunk/src/app/srs_app_http.cpp index 56c399e90..aa2691e2a 100644 --- a/trunk/src/app/srs_app_http.cpp +++ b/trunk/src/app/srs_app_http.cpp @@ -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)