diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2020-05-06 22:12:17 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-05-07 13:15:01 +0200 |
commit | 7fe1d60b95b5c832011656346a5542c772e4b0a6 (patch) | |
tree | 17399091233ff2c60226399fb0197015a21c5b11 /test/helpers.hpp | |
parent | 459cdc9c7347ce107da8ddbc1cbec7440a96d53c (diff) |
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@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'test/helpers.hpp')
-rw-r--r-- | test/helpers.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |