Add 'Content-Length: 0' header

This commit is contained in:
Philipp Heckel 2015-05-20 13:03:37 +01:00
parent 52eb6c95cf
commit 68fa190cf7

View file

@ -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();