loolwsd/LOOLStress.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit a0f6f4e41cebdc6617ef839c19d274e7ec7012d4 Author: Ashod Nakashian <[email protected]> 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 <[email protected]> Tested-by: Ashod Nakashian <[email protected]> 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"; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
