mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Fix JSON communication between qBittorrent and Web UI
This commit is contained in:
parent
d0037d90f4
commit
b5a9fe71e1
3 changed files with 30 additions and 29 deletions
|
@ -229,6 +229,7 @@ void HttpConnection::respondJson()
|
|||
QString string = json::toJson(manager->getEventList());
|
||||
generator.setStatusLine(200, "OK");
|
||||
generator.setContentTypeByExt("js");
|
||||
//qDebug("JSON: %s", string.toLocal8Bit().data());
|
||||
generator.setMessage(string);
|
||||
write();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue