mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 04:49:47 -07:00
Web UI: Code clean up
This commit is contained in:
parent
9115a2ddc2
commit
3ad81595df
1 changed files with 0 additions and 3 deletions
|
@ -91,7 +91,6 @@ void HttpConnection::read() {
|
||||||
m_generator.setStatusLine(400, "Bad Request");
|
m_generator.setStatusLine(400, "Bad Request");
|
||||||
write();
|
write();
|
||||||
} else {
|
} else {
|
||||||
if (!m_parser.isError())
|
|
||||||
respond();
|
respond();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -402,8 +401,6 @@ void HttpConnection::respondCommand(const QString& command) {
|
||||||
// it fails to load on Windows.
|
// it fails to load on Windows.
|
||||||
QTemporaryFile *tmpfile = new QTemporaryFile (QDir::temp().absoluteFilePath("qBT-XXXXXX.torrent"));
|
QTemporaryFile *tmpfile = new QTemporaryFile (QDir::temp().absoluteFilePath("qBT-XXXXXX.torrent"));
|
||||||
if (tmpfile->open()) {
|
if (tmpfile->open()) {
|
||||||
// Make sure we are writing in binary mode
|
|
||||||
tmpfile->setTextModeEnabled(false);
|
|
||||||
tmpfile->write(m_parser.torrent());
|
tmpfile->write(m_parser.torrent());
|
||||||
tmpfile->close();
|
tmpfile->close();
|
||||||
emit torrentReadyToBeDownloaded(tmpfile->fileName(), false, QString(), false);
|
emit torrentReadyToBeDownloaded(tmpfile->fileName(), false, QString(), false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue