Kaydet (Commit) 8910ffe9 authored tarafından Kurt Zenker's avatar Kurt Zenker

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!
üst 4712707e
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment