diff --git a/trunk/src/app/srs_app_latest_version.cpp b/trunk/src/app/srs_app_latest_version.cpp index 656e3418c..bec42d8fa 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);