From bf21f71b43b3f45d527af81b90bfb3919b2d38f0 Mon Sep 17 00:00:00 2001 From: Palo Kisa Date: Thu, 27 Apr 2017 11:22:54 +0200 Subject: qhttpthreaddelegate: Fix build with -no-ssl after @70d8460fc20 Just fixing the typo -> misplaced #ifndef guard. Change-Id: Ib3b0ceb615f45291cb64a0ed6c7f3a370dc506bf Reviewed-by: Timur Pocheptsov --- src/network/access/qhttpthreaddelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/access') diff --git a/src/network/access/qhttpthreaddelegate.cpp b/src/network/access/qhttpthreaddelegate.cpp index 603f5dc9ab..3d17664ed4 100644 --- a/src/network/access/qhttpthreaddelegate.cpp +++ b/src/network/access/qhttpthreaddelegate.cpp @@ -293,10 +293,10 @@ void QHttpThreadDelegate::startRequest() = httpRequest.isHTTP2Allowed() ? QHttpNetworkConnection::ConnectionTypeHTTP2 : QHttpNetworkConnection::ConnectionTypeHTTP; +#ifndef QT_NO_SSL if (ssl && !incomingSslConfiguration.data()) incomingSslConfiguration.reset(new QSslConfiguration); -#ifndef QT_NO_SSL if (httpRequest.isHTTP2Allowed() && ssl) { QList protocols; protocols << QSslConfiguration::ALPNProtocolHTTP2 -- cgit v1.2.3