Browse Source

Web UI: Code clean up

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
3ad81595df
  1. 3
      src/webui/httpconnection.cpp

3
src/webui/httpconnection.cpp

@ -91,7 +91,6 @@ void HttpConnection::read() { @@ -91,7 +91,6 @@ void HttpConnection::read() {
m_generator.setStatusLine(400, "Bad Request");
write();
} else {
if (!m_parser.isError())
respond();
}
}
@ -402,8 +401,6 @@ void HttpConnection::respondCommand(const QString& command) { @@ -402,8 +401,6 @@ void HttpConnection::respondCommand(const QString& command) {
// it fails to load on Windows.
QTemporaryFile *tmpfile = new QTemporaryFile (QDir::temp().absoluteFilePath("qBT-XXXXXX.torrent"));
if (tmpfile->open()) {
// Make sure we are writing in binary mode
tmpfile->setTextModeEnabled(false);
tmpfile->write(m_parser.torrent());
tmpfile->close();
emit torrentReadyToBeDownloaded(tmpfile->fileName(), false, QString(), false);

Loading…
Cancel
Save