[Pkg-owncloud-commits] [owncloud-client] 73/175: Add 'Content-Length: 0' header
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Aug 8 10:36:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 68fa190cf73c58e8b80087136600cd47052fb002
Author: Philipp Heckel <pheckel at datto.com>
Date: Wed May 20 13:03:37 2015 +0100
Add 'Content-Length: 0' header
---
src/libsync/networkjobs.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/libsync/networkjobs.cpp b/src/libsync/networkjobs.cpp
index 8a43e5c..78e9d28 100644
--- a/src/libsync/networkjobs.cpp
+++ b/src/libsync/networkjobs.cpp
@@ -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();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list