mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 03:49:20 +03:00
Add 'Content-Length: 0' header
This commit is contained in:
parent
52eb6c95cf
commit
68fa190cf7
1 changed files with 6 additions and 2 deletions
|
@ -307,8 +307,12 @@ MkColJob::MkColJob(AccountPtr account, const QString &path, QObject *parent)
|
|||
|
||||
void MkColJob::start()
|
||||
{
|
||||
// assumes ownership
|
||||
QNetworkReply *reply = davRequest("MKCOL", path());
|
||||
// add 'Content-Length: 0' header (see https://github.com/owncloud/client/issues/3256)
|
||||
QNetworkRequest req;
|
||||
req.setRawHeader("Content-Length", "0");
|
||||
|
||||
// assumes ownership
|
||||
QNetworkReply *reply = davRequest("MKCOL", path(), req);
|
||||
setReply(reply);
|
||||
setupConnections(reply);
|
||||
AbstractNetworkJob::start();
|
||||
|
|
Loading…
Reference in a new issue