DAVResourceAccess.cxx (6601ee31) DAVResourceAccess.cxx (554deb42)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1112 unchanged lines hidden (view full) ---

1121 return;
1122
1123 uno::Reference< ucb::XWebDAVCommandEnvironment > xDAVEnv(
1124 xEnv, uno::UNO_QUERY );
1125
1126 if ( !xDAVEnv.is() )
1127 return;
1128
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1112 unchanged lines hidden (view full) ---

1121 return;
1122
1123 uno::Reference< ucb::XWebDAVCommandEnvironment > xDAVEnv(
1124 xEnv, uno::UNO_QUERY );
1125
1126 if ( !xDAVEnv.is() )
1127 return;
1128
1129 uno::Sequence< beans::NamedValue > aRequestHeaders
1129 uno::Sequence< beans::StringPair > aRequestHeaders
1130 = xDAVEnv->getUserRequestHeaders( rURI, rMethod );
1131
1132 for ( sal_Int32 n = 0; n < aRequestHeaders.getLength(); ++n )
1133 {
1130 = xDAVEnv->getUserRequestHeaders( rURI, rMethod );
1131
1132 for ( sal_Int32 n = 0; n < aRequestHeaders.getLength(); ++n )
1133 {
1134 rtl::OUString aValue;
1135 sal_Bool isString = aRequestHeaders[ n ].Value >>= aValue;
1136
1137 if ( !isString )
1138 {
1139 OSL_ENSURE( isString,
1140 "DAVResourceAccess::getUserRequestHeaders :"
1141 "Value is not a string! Ignoring..." );
1142 continue;
1143 }
1144
1145 rRequestHeaders.push_back(
1134 rRequestHeaders.push_back(
1146 DAVRequestHeader( aRequestHeaders[ n ].Name, aValue ) );
1135 DAVRequestHeader( aRequestHeaders[ n ].First,
1136 aRequestHeaders[ n ].Second ) );
1147 }
1148}
1149
1150//=========================================================================
1151sal_Bool DAVResourceAccess::detectRedirectCycle(
1152 const rtl::OUString& rRedirectURL )
1153 throw ( DAVException )
1154{

--- 68 unchanged lines hidden ---
1137 }
1138}
1139
1140//=========================================================================
1141sal_Bool DAVResourceAccess::detectRedirectCycle(
1142 const rtl::OUString& rRedirectURL )
1143 throw ( DAVException )
1144{

--- 68 unchanged lines hidden ---