kget: adjust to KHTTP changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-05-10 14:57:21 +03:00
parent b0d3473621
commit e204b92b01
2 changed files with 8 additions and 2 deletions

View file

@ -81,8 +81,11 @@ void HttpServer::settingsChanged()
}
}
void HttpServer::respond(const QByteArray &url, QByteArray *outdata, ushort *outhttpstatus, KHTTPHeaders *outheaders)
void HttpServer::respond(const QByteArray &url, QByteArray *outdata,
ushort *outhttpstatus, KHTTPHeaders *outheaders,
QString *outfilePath)
{
Q_UNUSED(outfilePath);
*outhttpstatus = 200;
QByteArray data;

View file

@ -26,7 +26,10 @@ public:
void settingsChanged();
protected:
void respond(const QByteArray &url, QByteArray *outdata, ushort *httpstatus, KHTTPHeaders *outheaders) final;
void respond(
const QByteArray &url,
QByteArray *outdata, ushort *httpstatus, KHTTPHeaders *outheaders, QString *outfilePath
) final;
private:
KPasswdStore *m_passwdstore;