[Pkg-owncloud-commits] [owncloud-client] 63/89: Do not check for the ETag in case the HTTP request connected.
    Sandro Knauß 
    hefee-guest at moszumanska.debian.org
       
    Sat Dec 14 01:02:37 UTC 2013
    
    
  
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 aa213eeafba6860dd492bbb5dcb3ea5ccda0ba2f
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Dec 11 13:50:22 2013 +0100
    Do not check for the ETag in case the HTTP request connected.
---
 src/mirall/owncloudpropagator.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/src/mirall/owncloudpropagator.cpp b/src/mirall/owncloudpropagator.cpp
index 3c1146e..e832831 100644
--- a/src/mirall/owncloudpropagator.cpp
+++ b/src/mirall/owncloudpropagator.cpp
@@ -613,6 +613,14 @@ private:
             return;
         }
 
+        QByteArray reason_phrase = ne_get_status(req)->reason_phrase;
+        if(reason_phrase == QByteArray("Connection established")) {
+            ne_add_response_body_reader( req, ne_accept_2xx,
+                                        content_reader,
+                                        (void*) that );
+            return;
+        }
+
         QByteArray etag = parseEtag(ne_get_response_header(req, "etag"));
         if(etag.isEmpty())
             etag = parseEtag(ne_get_response_header(req, "ETag"));
-- 
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