summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
index d0f22af..b4ffbd5 100644
--- a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
+++ b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
@@ -675,7 +675,9 @@ void tst_QWebSocket::tst_moveToThread()
QUrl url = QUrl(QStringLiteral("ws://") + echoServer.hostAddress().toString() +
QStringLiteral(":") + QString::number(echoServer.port()));
url.setPath("/segment/with spaces");
- url.addQueryItem("queryitem", "with encoded characters");
+ QUrlQuery query;
+ query.addQueryItem("queryitem", "with encoded characters");
+ url.setQuery(query);
socket->asyncOpen(url);
if (socketConnectedSpy.count() == 0)