mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Fix several issues with the files properties in Web UI (introduced recently)
This commit is contained in:
parent
b5a9fe71e1
commit
ed13c43e93
3 changed files with 5 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue