mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
HTTP: Close connection for HTTP static file server
This commit is contained in:
parent
f501d5b63d
commit
2b50326e97
1 changed files with 4 additions and 0 deletions
|
@ -360,6 +360,10 @@ srs_error_t SrsHttpFileServer::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMes
|
|||
{
|
||||
srs_assert(entry);
|
||||
|
||||
// For each HTTP session, we use short-term HTTP connection.
|
||||
SrsHttpHeader* hdr = w->header();
|
||||
hdr->set("Connection", "Close");
|
||||
|
||||
string upath = r->path();
|
||||
string fullpath = srs_http_fs_fullpath(dir, entry->pattern, upath);
|
||||
|
||||
|
|
Loading…
Reference in a new issue