diff --git a/src/httpconnection.cpp b/src/httpconnection.cpp index 3eea651e6..9871a45b5 100644 --- a/src/httpconnection.cpp +++ b/src/httpconnection.cpp @@ -309,6 +309,11 @@ void HttpConnection::respondCommand(QString command) torrent.close(); } emit torrentReadyToBeDownloaded(filePath, false, QString(), false); + // Prepare response + generator.setStatusLine(200, "OK"); + generator.setContentTypeByExt("html"); + generator.setMessage(QString("")); + write(); return; } if(command == "resumeall") { diff --git a/src/webui/uploadframe.html b/src/webui/uploadframe.html index 11fb025ee..8f29481ba 100644 --- a/src/webui/uploadframe.html +++ b/src/webui/uploadframe.html @@ -12,7 +12,6 @@ function submitForm(form) { return false; } document.uploadForm.submit(); - window.parent.hideAll(); }