mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix bug for v2.0-r9
This commit is contained in:
parent
e6cf8bf22b
commit
008034615e
1 changed files with 6 additions and 1 deletions
|
@ -114,8 +114,13 @@ int SrsLatestVersion::query_latest_version()
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Path with query.
|
||||||
|
string path = uri.get_path();
|
||||||
|
path += "?";
|
||||||
|
path += uri.get_query();
|
||||||
|
|
||||||
ISrsHttpMessage* msg = NULL;
|
ISrsHttpMessage* msg = NULL;
|
||||||
if ((ret = http.get(uri.get_path(), "", &msg)) != ERROR_SUCCESS) {
|
if ((ret = http.get(path, "", &msg)) != ERROR_SUCCESS) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
SrsAutoFree(ISrsHttpMessage, msg);
|
SrsAutoFree(ISrsHttpMessage, msg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue