1
0
Fork 0
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:
winlin 2021-06-27 09:14:17 +08:00
parent e6cf8bf22b
commit 008034615e

View file

@ -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);