loolwsd/Connect.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit e87cf1e5d817835e885af5cd0b4818227a51a1e0 Author: Tor Lillqvist <[email protected]> Date: Tue Oct 18 12:29:05 2016 +0300 Adapt to new URI format in the GET request diff --git a/loolwsd/Connect.cpp b/loolwsd/Connect.cpp index 211e56e..237e7c2 100644 --- a/loolwsd/Connect.cpp +++ b/loolwsd/Connect.cpp @@ -175,7 +175,9 @@ protected: #else HTTPClientSession cs(_uri.getHost(), _uri.getPort()); #endif - HTTPRequest request(HTTPRequest::HTTP_GET, std::string("lool/ws/") + args[0]); + std::string encodedUri; + URI::encode(args[0], ":/?", encodedUri); + HTTPRequest request(HTTPRequest::HTTP_GET, "/lool/" + encodedUri + "/ws"); HTTPResponse response; WebSocket ws(cs, request, response); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
