summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/httpserver/qhttpserverrequest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/httpserver/qhttpserverrequest.cpp b/src/httpserver/qhttpserverrequest.cpp
index 41f4cf2..07f89a4 100644
--- a/src/httpserver/qhttpserverrequest.cpp
+++ b/src/httpserver/qhttpserverrequest.cpp
@@ -44,7 +44,7 @@
#include <QtCore/qdebug.h>
#include <QtCore/qloggingcategory.h>
#include <QtNetwork/qtcpsocket.h>
-#if defined(QT_FEATURE_ssl)
+#if QT_CONFIG(ssl)
#include <QtNetwork/qsslsocket.h>
#endif
@@ -102,7 +102,7 @@ bool QHttpServerRequestPrivate::parse(QIODevice *socket)
{
const auto fragment = socket->readAll();
if (fragment.size()) {
-#if defined(QT_FEATURE_ssl)
+#if QT_CONFIG(ssl)
auto sslSocket = qobject_cast<QSslSocket *>(socket);
url.setScheme(sslSocket && sslSocket->isEncrypted() ? QStringLiteral("https")
: QStringLiteral("http"));