mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 16:37:21 -06:00
Allow WebAPI to specify filename and mime type for result data
PR #20377.
This commit is contained in:
committed by
GitHub
parent
8ef99b336c
commit
60bb819e2e
@@ -1442,5 +1442,5 @@ void TorrentsController::exportAction()
|
||||
if (!result)
|
||||
throw APIError(APIErrorType::Conflict, tr("Unable to export torrent file. Error: %1").arg(result.error()));
|
||||
|
||||
setResult(result.value());
|
||||
setResult(result.value(), u"application/x-bittorrent"_s, (id.toString() + u".torrent"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user