diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav-neon/webdavcontent.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index f89a2fc9bde8..3b82bb49a7ba 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -1364,9 +1364,6 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( if ( bNetworkAccessAllowed ) { - if( eType != DAV ) - m_bDidGetOrHead = false; - // All properties obtained already? std::vector< OUString > aMissingProps; if ( !( xProps.get() @@ -1382,6 +1379,14 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( rProperties, aHeaderNames ); + if( eType != DAV ) + { + // in case of not DAV PROFIND (previously in program flow) failed + // so we need to add the only prop that's common + // to DAV and NON_DAV: MediaType, that maps to Content-Type + aHeaderNames.push_back( "Content-Type" ); + } + if ( !aHeaderNames.empty() ) { try |