There was no '?' between path and query. Bug detected by someone on the internet.
authorKurt Pattyn <pattyn.kurt@gmail.com>
Fri, 6 Sep 2013 15:09:32 +0000 (17:09 +0200)
committerKurt Pattyn <pattyn.kurt@gmail.com>
Fri, 6 Sep 2013 15:09:32 +0000 (17:09 +0200)
src/qwebsocket_p.cpp

index c06471e..054034c 100644 (file)
@@ -245,7 +245,11 @@ void QWebSocketPrivate::open(const QUrl &url, bool mask)
     m_isClosingHandshakeSent = false;
 
     setRequestUrl(url);
-    QString resourceName = url.path() + url.query();
+    QString resourceName = url.path();
+    if (!url.query().isEmpty())
+    {
+        resourceName.append("?" + url.query());
+    }
     if (resourceName.isEmpty())
     {
         resourceName = "/";