mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
- Fix several issues with the files properties in Web UI (introduced recently)
This commit is contained in:
@@ -193,7 +193,7 @@ void HttpConnection::respond()
|
||||
else
|
||||
list.prepend("webui");
|
||||
url = ":/" + list.join("/");
|
||||
qDebug("Resource URL: %s", url.toLocal8Bit().data());
|
||||
//qDebug("Resource URL: %s", url.toLocal8Bit().data());
|
||||
QFile file(url);
|
||||
if(!file.open(QIODevice::ReadOnly))
|
||||
{
|
||||
@@ -258,6 +258,7 @@ void HttpConnection::respondFilesPropertiesJson(QString hash) {
|
||||
generator.setStatusLine(200, "OK");
|
||||
generator.setContentTypeByExt("js");
|
||||
generator.setMessage(string);
|
||||
//qDebug("JSON: %s", string.toLocal8Bit().data());
|
||||
write();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user