mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine dvr, append file when dvr file exists. 2.0.122.
This commit is contained in:
parent
1102c7a58f
commit
a984eeecab
10 changed files with 79 additions and 17 deletions
|
@ -294,8 +294,7 @@ int SrsGoHttpFileServer::serve_http(ISrsGoHttpResponseWriter* w, SrsHttpMessage*
|
|||
}
|
||||
|
||||
// stat current dir, if exists, return error.
|
||||
struct stat st;
|
||||
if (stat(fullpath.c_str(), &st) != 0) {
|
||||
if (!srs_path_exists(fullpath)) {
|
||||
srs_warn("http miss file=%s, pattern=%s, upath=%s",
|
||||
fullpath.c_str(), entry->pattern.c_str(), upath.c_str());
|
||||
return SrsGoHttpNotFoundHandler().serve_http(w, r);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue