summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-16 12:31:13 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-16 12:32:54 (GMT)
commitdc0d84ac8f797eaf1d74cd82cda1aab04b0e5f87 (patch)
tree1185ee28eeb88eaa3f430fd5dd5b7ad8eee3fe3e /tests/manual
parente2c776862cb9bdf5b651c15934f7e92fe11b989b (diff)
downloadQt-dc0d84ac8f797eaf1d74cd82cda1aab04b0e5f87.zip
Qt-dc0d84ac8f797eaf1d74cd82cda1aab04b0e5f87.tar.gz
Qt-dc0d84ac8f797eaf1d74cd82cda1aab04b0e5f87.tar.bz2
Make sure we don't try URLs that aren't HTTP or HTTPS
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp8
1 files 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;
+ }
}
}