Skip to content

Commit 38208a7

Browse files
authored
[net] Prevent a trailing question mark when no options are specified
So that constructor error "file does not exist" does not show a suspicious question mark
1 parent a886f03 commit 38208a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

net/net/src/TWebFile.cxx

+4-2
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,10 @@ void TWebFile::SetMsgReadBuffer10(const char *redirectLocation, Bool_t tempRedir
327327
fBasicUrl += fUrl.GetPort();
328328
fBasicUrl += "/";
329329
fBasicUrl += fUrl.GetFile();
330-
fBasicUrl += "?";
331-
fBasicUrl += fUrl.GetOptions();
330+
if (strlen(fUrl.GetOptions())) {
331+
fBasicUrl += "?";
332+
fBasicUrl += fUrl.GetOptions();
333+
}
332334
}
333335

334336
if (fMsgReadBuffer10 == "") {

0 commit comments

Comments
 (0)