Skip to content

Commit e7435a6

Browse files
committed
Fix bug for v3.0-r6
1 parent 2be8589 commit e7435a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

trunk/src/app/srs_app_latest_version.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,13 @@ srs_error_t SrsLatestVersion::query_latest_version()
119119
return err;
120120
}
121121

122+
// Path with query.
123+
string path = uri.get_path();
124+
path += "?";
125+
path += uri.get_query();
126+
122127
ISrsHttpMessage* msg = NULL;
123-
if ((err = http.get(uri.get_path(), "", &msg)) != srs_success) {
128+
if ((err = http.get(path, "", &msg)) != srs_success) {
124129
return err;
125130
}
126131
SrsAutoFree(ISrsHttpMessage, msg);

0 commit comments

Comments
 (0)