[Libreoffice-commits] online.git: loolwsd/LOOLStress.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Tue Oct 4 23:35:27 UTC 2016


 loolwsd/LOOLStress.cpp |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit a0f6f4e41cebdc6617ef839c19d274e7ec7012d4
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Mon Oct 3 23:43:44 2016 -0400

    loolstress: use new URI for loading documents
    
    Change-Id: If811deffc4b7a9b2cf290b93d9f87a840e64dc4e
    Reviewed-on: https://gerrit.libreoffice.org/29531
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/LOOLStress.cpp b/loolwsd/LOOLStress.cpp
index c43cfbc..484d3fb 100644
--- a/loolwsd/LOOLStress.cpp
+++ b/loolwsd/LOOLStress.cpp
@@ -110,7 +110,10 @@ public:
 
         // Load a document and get its status.
         std::cout << "NewSession [" << sessionId << "]: " << uri.toString() << "... ";
-        Poco::Net::HTTPRequest request(Poco::Net::HTTPRequest::HTTP_GET, "/lool/ws/" + documentURL);
+
+        std::string encodedUri;
+        Poco::URI::encode(documentURL, ":/?", encodedUri);
+        Poco::Net::HTTPRequest request(Poco::Net::HTTPRequest::HTTP_GET, "/lool/" + encodedUri + "/ws");
         Poco::Net::HTTPResponse response;
         auto ws = helpers::connectLOKit(uri, request, response, sessionId + ' ');
         std::cout << "Connected.\n";


More information about the Libreoffice-commits mailing list