kdirshare: adjust to KHTTP changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-25 18:15:21 +02:00
parent 4d1aff9ff9
commit 0e81d497dd

View file

@ -175,7 +175,7 @@ QString KDirShareImpl::serve(const QString &dirpath,
return m_error;
}
if (!m_user.isEmpty() && !m_password.isEmpty()) {
if (!setAuthenticate(m_user.toUtf8(), m_password.toUtf8(), i18n("Not authorized"))) {
if (!setAuthenticate(m_user.toUtf8(), m_password.toUtf8())) {
m_error = i18n("Could not set authentication: %1", errorString());
return m_error;
}