mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
--------- Co-authored-by: Jacob Su <suzp1984@gmail.com> Co-authored-by: winlin <winlinvip@gmail.com>
This commit is contained in:
parent
101382afd0
commit
58e775ce8d
5 changed files with 8 additions and 3 deletions
|
@ -630,6 +630,8 @@ srs_error_t SrsLiveStream::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage
|
|||
// Correct the app and stream by path, which is created from template.
|
||||
// @remark Be careful that the stream has extension now, might cause identify fail.
|
||||
req->stream = srs_path_basename(r->path());
|
||||
// remove the extension of stream if have. for instance, test.flv -> test
|
||||
req->stream = srs_path_filename(req->stream);
|
||||
|
||||
// update client ip
|
||||
req->ip = hc->remote_ip();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue