- Fix JSON communication between qBittorrent and Web UI

This commit is contained in:
Christophe Dumez 2009-12-29 20:09:46 +00:00
parent d0037d90f4
commit b5a9fe71e1
3 changed files with 30 additions and 29 deletions

View file

@ -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();
}