summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-01-21 20:14:46 +0100
committerDavid Tardon <dtardon@redhat.com>2014-01-21 19:25:37 +0000
commitbd121d45f847ff353e3796510fac3181b88a87b1 (patch)
treee9c6acdec0590326e1613e264495a0dc214dd291
parent523ad9696c9135a29393a0c4d147ab206b6de4f5 (diff)
ucb: fix inverted condition in webdav lcl_sendPartialGETRequest
(regression from a3f32769fc4bb23c64168b412dd10ec769a3854d) Change-Id: Ic72b0e874ebf19e25e43af1f8750c63c04ed8a8e (cherry picked from commit 3780738154b8c3b3f9d85c64cccf621d97574886) Reviewed-on: https://gerrit.libreoffice.org/7581 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index 9bd49f36cfb8..d98c39ba0708 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -163,7 +163,7 @@ static void lcl_sendPartialGETRequest( bool &bError,
for ( std::vector< DAVPropertyValue >::iterator it = aResponseProps.begin();
it != aResponseProps.end(); ++it )
{
- if ( it->Name != "Content-Length" )
+ if (it->Name == "Content-Length")
{
it->Value <<= aSize;
break;