diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-06-19 15:13:02 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-06-19 15:13:02 +0000 |
commit | 8910ffe93ad491c7728629fa8a0a09ff311583be (patch) | |
tree | 88099bdfca8d30c29aa906e61fc6793af80640bc /ucb | |
parent | 4712707e705e5c63cbe7b420509833af14b3b88b (diff) |
INTEGRATION: CWS ucbfixes02 (1.43.34); FILE MERGED
2007/06/12 08:37:00 kso 1.43.34.3: RESYNC: (1.44-1.45); FILE MERGED
2007/05/29 14:46:47 kso 1.43.34.2: RESYNC: (1.43-1.44); FILE MERGED
2007/05/15 11:52:54 kso 1.43.34.1: #i77134# - HTTP header field names are case insensitive!
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/NeonSession.cxx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/ucb/source/ucp/webdav/NeonSession.cxx b/ucb/source/ucp/webdav/NeonSession.cxx index 51b2aaf095ea..98b345dc35b8 100644 --- a/ucb/source/ucp/webdav/NeonSession.cxx +++ b/ucb/source/ucp/webdav/NeonSession.cxx @@ -4,9 +4,9 @@ * * $RCSfile: NeonSession.cxx,v $ * - * $Revision: 1.45 $ + * $Revision: 1.46 $ * - * last change: $Author: ihi $ $Date: 2007-06-05 18:19:40 $ + * last change: $Author: kz $ $Date: 2007-06-19 16:13:02 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -477,7 +477,6 @@ extern "C" void NeonSession_ResponseHeaderCatcher( void * userdata, // Note: Empty vector means that all headers are requested. bool bIncludeIt = ( pCtx->pHeaderNames->size() == 0 ); - if ( !bIncludeIt ) { // Check whether this header was requested. @@ -488,9 +487,12 @@ extern "C" void NeonSession_ResponseHeaderCatcher( void * userdata, while ( it != end ) { - if ( (*it) == aHeaderName ) + // header names are case insensitive + if ( (*it).equalsIgnoreAsciiCase( aHeaderName ) ) + { + aHeaderName = (*it); break; - + } ++it; } @@ -501,10 +503,9 @@ extern "C" void NeonSession_ResponseHeaderCatcher( void * userdata, if ( bIncludeIt ) { // Create & set the PropertyValue - beans::PropertyValue thePropertyValue; - thePropertyValue.Handle = -1; - thePropertyValue.Name = aHeaderName; - thePropertyValue.State = beans::PropertyState_DIRECT_VALUE; + DAVPropertyValue thePropertyValue; + thePropertyValue.IsCaseSensitive = false; + thePropertyValue.Name = aHeaderName; if ( nPos < aHeader.getLength() ) thePropertyValue.Value <<= aHeader.copy( nPos + 1 ).trim(); |