1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add api framework code

This commit is contained in:
winlin 2014-04-02 12:55:10 +08:00
parent 0ba0c14fb8
commit eae9b94153
3 changed files with 85 additions and 2 deletions

View file

@ -60,7 +60,7 @@ int SrsHttpConn::do_cycle()
// initialize parser
if ((ret = parser->initialize(HTTP_REQUEST)) != ERROR_SUCCESS) {
srs_error("initialize http parser failed. ret=%d", ret);
srs_error("http initialize http parser failed. ret=%d", ret);
return ret;
}
@ -109,7 +109,7 @@ int SrsHttpConn::process_request(SrsSocket* skt, SrsHttpMessage* req)
return skt->write(data, sizeof(data), NULL);
} else {
std::string tilte = "SRS/"RTMP_SIG_SRS_VERSION;
tilte += " hello http/1.1~\n";
tilte += " hello http/1.1 server~\n";
std::stringstream ss;
ss << "HTTP/1.1 200 OK " << __CRLF