[Libreoffice-commits] online.git: loolwsd/Connect.cpp
Tor Lillqvist
tml at collabora.com
Tue Oct 18 09:29:34 UTC 2016
loolwsd/Connect.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit e87cf1e5d817835e885af5cd0b4818227a51a1e0
Author: Tor Lillqvist <tml at collabora.com>
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);
More information about the Libreoffice-commits
mailing list