mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the hls notify bug, pass the query to get path.
This commit is contained in:
parent
02a2cb7e1a
commit
542aab4557
1 changed files with 11 additions and 1 deletions
|
@ -358,8 +358,18 @@ int SrsHttpHooks::on_hls_notify(std::string url, SrsRequest* req, std::string ts
|
|||
return ret;
|
||||
}
|
||||
|
||||
std::string path = uri.get_query();
|
||||
if (path.empty()) {
|
||||
path = uri.get_path();
|
||||
} else {
|
||||
path = uri.get_path();
|
||||
path += "?";
|
||||
path += uri.get_query();
|
||||
}
|
||||
srs_warn("GET %s", path.c_str());
|
||||
|
||||
SrsHttpMessage* msg = NULL;
|
||||
if ((ret = http.get(uri.get_path(), "", &msg)) != ERROR_SUCCESS) {
|
||||
if ((ret = http.get(path.c_str(), "", &msg)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
SrsAutoFree(SrsHttpMessage, msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue