mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refactor http static file server path resolving.
This commit is contained in:
parent
fa362607b2
commit
97f2c5bf0c
3 changed files with 28 additions and 11 deletions
|
@ -281,7 +281,7 @@ public:
|
|||
typedef bool (*_pfn_srs_path_exists)(std::string path);
|
||||
|
||||
// Build the file path from request r.
|
||||
extern std::string srs_http_fs_fullpath(std::string dir, std::string upath, std::string pattern);
|
||||
extern std::string srs_http_fs_fullpath(std::string dir, std::string pattern, std::string upath);
|
||||
|
||||
// FileServer returns a handler that serves HTTP requests
|
||||
// with the contents of the file system rooted at root.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue