mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 19:31:53 +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;
|
||||
}
|
||||
|
||||
// Path with query.
|
||||
string path = uri.get_path();
|
||||
path += "?";
|
||||
path += uri.get_query();
|
||||
|
||||
ISrsHttpMessage* msg = NULL;
|
||||
if ((ret = http.get(uri.get_path(), "", &msg)) != ERROR_SUCCESS) {
|
||||
if ((ret = http.get(path, "", &msg)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
SrsAutoFree(ISrsHttpMessage, msg);
|
||||
|
|
Loading…
Reference in a new issue