From e7435a623726882c07882f834a88089df00f3899 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 27 Jun 2021 09:14:17 +0800 Subject: [PATCH] Fix bug for v3.0-r6 --- 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 656e3418c3..bec42d8fac 100644 --- a/trunk/src/app/srs_app_latest_version.cpp +++ b/trunk/src/app/srs_app_latest_version.cpp @@ -119,8 +119,13 @@ srs_error_t SrsLatestVersion::query_latest_version() return err; } + // Path with query. + string path = uri.get_path(); + path += "?"; + path += uri.get_query(); + ISrsHttpMessage* msg = NULL; - if ((err = http.get(uri.get_path(), "", &msg)) != srs_success) { + if ((err = http.get(path, "", &msg)) != srs_success) { return err; } SrsAutoFree(ISrsHttpMessage, msg);