diff --git a/src/ioslaves/http/http.cpp b/src/ioslaves/http/http.cpp --- a/src/ioslaves/http/http.cpp +++ b/src/ioslaves/http/http.cpp @@ -56,8 +56,8 @@ #include #include +#include #include -#include #include #include @@ -2243,7 +2243,7 @@ } // Disable Nagle's algorithm, i.e turn on TCP_NODELAY. - KTcpSocket *sock = qobject_cast(socket()); + QSslSocket *sock = qobject_cast(socket()); if (sock) { qCDebug(KIO_HTTP) << "TCP_NODELAY:" << sock->socketOption(QAbstractSocket::LowDelayOption); sock->setSocketOption(QAbstractSocket::LowDelayOption, 1);