Skip to content

Commit

Permalink
Fix bug for v3.0-r6
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jun 27, 2021
1 parent 2be8589 commit e7435a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion trunk/src/app/srs_app_latest_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e7435a6

Please sign in to comment.