From dc0d84ac8f797eaf1d74cd82cda1aab04b0e5f87 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 16 Apr 2010 14:31:13 +0200 Subject: Make sure we don't try URLs that aren't HTTP or HTTPS --- .../network_remote_stresstest/tst_network_remote_stresstest.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp b/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp index 542147c..c35cdeb 100644 --- a/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp +++ b/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp @@ -123,11 +123,13 @@ tst_NetworkRemoteStressTest::tst_NetworkRemoteStressTest() while (!urlList.atEnd()) { QByteArray line = urlList.readLine().trimmed(); QUrl url = QUrl::fromEncoded(line); - if (url.scheme() == "http") + if (url.scheme() == "http") { httpUrls << url; - else if (url.scheme() == "https") + mixedUrls << url; + } else if (url.scheme() == "https") { httpsUrls << url; - mixedUrls << url; + mixedUrls << url; + } } } -- cgit v0.12