From c61891926cd50e82759a71d6303c83fe117d747d Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 25 Dec 2022 18:35:07 +0200 Subject: [PATCH] kdirshare: use the new KHTTP::setServerID() method Signed-off-by: Ivailo Monev --- kdirshare/kded/kdirshareimpl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kdirshare/kded/kdirshareimpl.cpp b/kdirshare/kded/kdirshareimpl.cpp index 59873cbc..e886afd7 100644 --- a/kdirshare/kded/kdirshareimpl.cpp +++ b/kdirshare/kded/kdirshareimpl.cpp @@ -150,6 +150,7 @@ KDirShareImpl::KDirShareImpl(QObject *parent) m_portmin(s_kdirshareportmin), m_portmax(s_kdirshareportmax) { + setServerID(QString::fromLatin1("KDirShare")); } KDirShareImpl::~KDirShareImpl() @@ -223,9 +224,6 @@ void KDirShareImpl::respond(const QByteArray &url, QByteArray *outdata, QString *outfilepath) { // qDebug() << Q_FUNC_INFO << url; - - outheaders->insert("Server", "KDirShare"); - const QString normalizedpath = QUrl::fromPercentEncoding(url); QFileInfo pathinfo(m_directory + QLatin1Char('/') + normalizedpath); // qDebug() << Q_FUNC_INFO << normalizedpath << pathinfo.filePath(); -- 2.11.0