[Libreoffice-commits] online.git: test/helpers.hpp
Michael Meeks (via logerrit)
logerrit at kemper.freedesktop.org
Thu May 7 11:15:19 UTC 2020
test/helpers.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7fe1d60b95b5c832011656346a5542c772e4b0a6
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Wed May 6 22:12:17 2020 +0100
Commit: Michael Meeks <michael.meeks at collabora.com>
CommitDate: Thu May 7 13:15:01 2020 +0200
Use https sessions for wss:// as well as https://
Change-Id: I1b3f193a51b538c423589276b4ae61ba760b241e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93595
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/test/helpers.hpp b/test/helpers.hpp
index 341c5621c..bbbf3fc2a 100644
--- a/test/helpers.hpp
+++ b/test/helpers.hpp
@@ -229,7 +229,7 @@ inline
Poco::Net::HTTPClientSession* createSession(const Poco::URI& uri)
{
#if ENABLE_SSL
- if (uri.getScheme() == "https")
+ if (uri.getScheme() == "https" || uri.getScheme() == "wss")
return new Poco::Net::HTTPSClientSession(uri.getHost(), uri.getPort());
#endif
return new Poco::Net::HTTPClientSession(uri.getHost(), uri.getPort());
More information about the Libreoffice-commits
mailing list