mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the http code.
This commit is contained in:
parent
f8f6e438cc
commit
3211282b0c
4 changed files with 18 additions and 14 deletions
|
@ -1219,7 +1219,7 @@ int SrsServer::accept_client(SrsListenerType type, st_netfd_t client_stfd)
|
|||
#endif
|
||||
} else if (type == SrsListenerHttpStream) {
|
||||
#ifdef SRS_AUTO_HTTP_SERVER
|
||||
conn = new SrsStaticHttpConn(this, client_stfd, http_server);
|
||||
conn = new SrsResponseOnlyHttpConn(this, client_stfd, http_server);
|
||||
#else
|
||||
srs_warn("close http client for server not support http-server");
|
||||
srs_close_stfd(client_stfd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue