Get path from query paramter, or URL's path
This commit is contained in:
committed by
craig.p.drummond
parent
05ab47d2a3
commit
610eab1309
@@ -187,7 +187,11 @@ Song HttpServer::decodeUrl(const QString &url) const
|
||||
if (u.hasQueryItem("track")) {
|
||||
s.track=u.queryItemValue("track").toInt();
|
||||
}
|
||||
s.file=url;
|
||||
if (u.hasQueryItem("file")) {
|
||||
s.file=u.queryItemValue("file");
|
||||
} else {
|
||||
s.file=u.path();
|
||||
}
|
||||
}
|
||||
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user