From bb6468005d085e3b1b64d4f3da36c4fca6e6a616 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 8 Dec 2009 16:42:59 +0000 Subject: [PATCH] - Fix torrent upload in Web UI (worked randomly) --- src/httpconnection.cpp | 5 +++++ src/webui/uploadframe.html | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) 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(); }