diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-16 12:31:13 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-16 12:32:54 (GMT) |
commit | dc0d84ac8f797eaf1d74cd82cda1aab04b0e5f87 (patch) | |
tree | 1185ee28eeb88eaa3f430fd5dd5b7ad8eee3fe3e /tests/manual | |
parent | e2c776862cb9bdf5b651c15934f7e92fe11b989b (diff) | |
download | Qt-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.cpp | 8 |
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; + } } } |