From 3ad81595dff462a9dd66cd3e995fae971681134e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 29 Sep 2011 19:41:29 +0300 Subject: [PATCH] Web UI: Code clean up --- src/webui/httpconnection.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/webui/httpconnection.cpp b/src/webui/httpconnection.cpp index 778f77cfb..ab3a09d82 100644 --- a/src/webui/httpconnection.cpp +++ b/src/webui/httpconnection.cpp @@ -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) { // 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);