mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Allow to pass extraHeaders to a path based MkColJob
We could specify the extra headers with a URL but not a simple path. Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
e14ae806b6
commit
01f5501ad8
2 changed files with 7 additions and 0 deletions
|
@ -122,6 +122,12 @@ MkColJob::MkColJob(AccountPtr account, const QString &path, QObject *parent)
|
|||
{
|
||||
}
|
||||
|
||||
MkColJob::MkColJob(AccountPtr account, const QString &path, const QMap<QByteArray, QByteArray> &extraHeaders, QObject *parent)
|
||||
: AbstractNetworkJob(account, path, parent)
|
||||
, _extraHeaders(extraHeaders)
|
||||
{
|
||||
}
|
||||
|
||||
MkColJob::MkColJob(AccountPtr account, const QUrl &url,
|
||||
const QMap<QByteArray, QByteArray> &extraHeaders, QObject *parent)
|
||||
: AbstractNetworkJob(account, QString(), parent)
|
||||
|
|
|
@ -253,6 +253,7 @@ class OWNCLOUDSYNC_EXPORT MkColJob : public AbstractNetworkJob
|
|||
|
||||
public:
|
||||
explicit MkColJob(AccountPtr account, const QString &path, QObject *parent = nullptr);
|
||||
explicit MkColJob(AccountPtr account, const QString &path, const QMap<QByteArray, QByteArray> &extraHeaders, QObject *parent = nullptr);
|
||||
explicit MkColJob(AccountPtr account, const QUrl &url,
|
||||
const QMap<QByteArray, QByteArray> &extraHeaders, QObject *parent = nullptr);
|
||||
void start() override;
|
||||
|
|
Loading…
Reference in a new issue