[Libreoffice-commits] online.git: wsd/Storage.cpp
Andras Timar (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 9 10:18:40 UTC 2019
wsd/Storage.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit df0dd1644579dbf767f573fc172da8962a4cc232
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Wed Oct 9 12:17:33 2019 +0200
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Oct 9 12:17:33 2019 +0200
Fix the SSL termination case
Follow up commit of d597f22dac9042c3917d3b105adc810b6900d52c
Change-Id: I41ca46a93f4b82c6fea6489dbd4c0e3390ba652f
diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp
index 49e804b89..ab6e51cfc 100644
--- a/wsd/Storage.cpp
+++ b/wsd/Storage.cpp
@@ -392,12 +392,12 @@ Poco::Net::HTTPClientSession* StorageBase::getHTTPClientSession(const Poco::URI&
// We decoupled the Wopi communication from client communcation because
// the Wopi communication must have an independent policy.
// So, we will use here only Storage settings.
- return (SSLEnabled)
+ return (SSLEnabled || LOOLWSD::isSSLTermination())
? new Poco::Net::HTTPSClientSession(uri.getHost(), uri.getPort(),
Poco::Net::SSLManager::instance().defaultClientContext())
: new Poco::Net::HTTPClientSession(uri.getHost(), uri.getPort());
}
-
+
namespace
{
More information about the Libreoffice-commits
mailing list