mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
parent
48fa4e116c
commit
fb7f7d0c75
9 changed files with 55 additions and 1 deletions
|
@ -278,6 +278,9 @@ void WebApplication::doProcessRequest()
|
|||
case QMetaType::QJsonDocument:
|
||||
print(result.toJsonDocument().toJson(QJsonDocument::Compact), Http::CONTENT_TYPE_JSON);
|
||||
break;
|
||||
case QMetaType::QByteArray:
|
||||
print(result.toByteArray(), Http::CONTENT_TYPE_TXT);
|
||||
break;
|
||||
case QMetaType::QString:
|
||||
default:
|
||||
print(result.toString(), Http::CONTENT_TYPE_TXT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue