From 008034615ecab3463e7a60e9d45b6968fe4dcf5d Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 27 Jun 2021 09:14:17 +0800 Subject: [PATCH] Fix bug for v2.0-r9 --- trunk/src/app/srs_app_latest_version.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_latest_version.cpp b/trunk/src/app/srs_app_latest_version.cpp index f5ccf09fd..1c92878bb 100644 --- a/trunk/src/app/srs_app_latest_version.cpp +++ b/trunk/src/app/srs_app_latest_version.cpp @@ -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);