mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 10:52:51 +00:00
kdirshare: use the new KHTTP::setServerID() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0e81d497dd
commit
c61891926c
1 changed files with 1 additions and 3 deletions
|
@ -150,6 +150,7 @@ KDirShareImpl::KDirShareImpl(QObject *parent)
|
||||||
m_portmin(s_kdirshareportmin),
|
m_portmin(s_kdirshareportmin),
|
||||||
m_portmax(s_kdirshareportmax)
|
m_portmax(s_kdirshareportmax)
|
||||||
{
|
{
|
||||||
|
setServerID(QString::fromLatin1("KDirShare"));
|
||||||
}
|
}
|
||||||
|
|
||||||
KDirShareImpl::~KDirShareImpl()
|
KDirShareImpl::~KDirShareImpl()
|
||||||
|
@ -223,9 +224,6 @@ void KDirShareImpl::respond(const QByteArray &url, QByteArray *outdata,
|
||||||
QString *outfilepath)
|
QString *outfilepath)
|
||||||
{
|
{
|
||||||
// qDebug() << Q_FUNC_INFO << url;
|
// qDebug() << Q_FUNC_INFO << url;
|
||||||
|
|
||||||
outheaders->insert("Server", "KDirShare");
|
|
||||||
|
|
||||||
const QString normalizedpath = QUrl::fromPercentEncoding(url);
|
const QString normalizedpath = QUrl::fromPercentEncoding(url);
|
||||||
QFileInfo pathinfo(m_directory + QLatin1Char('/') + normalizedpath);
|
QFileInfo pathinfo(m_directory + QLatin1Char('/') + normalizedpath);
|
||||||
// qDebug() << Q_FUNC_INFO << normalizedpath << pathinfo.filePath();
|
// qDebug() << Q_FUNC_INFO << normalizedpath << pathinfo.filePath();
|
||||||
|
|
Loading…
Add table
Reference in a new issue