Kaydet (Commit) 8696fcd9 authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS ucbfixes02 (1.6.48); FILE MERGED

2007/05/15 11:52:54 kso 1.6.48.1: #i77134# - HTTP header field names are case insensitive!
üst f2d096b3
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: NeonHeadRequest.cxx,v $ * $RCSfile: NeonHeadRequest.cxx,v $
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* *
* last change: $Author: obo $ $Date: 2006-09-17 14:06:12 $ * last change: $Author: kz $ $Date: 2007-06-19 16:12:34 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -93,12 +93,10 @@ static void process_headers(ne_request *req, ...@@ -93,12 +93,10 @@ static void process_headers(ne_request *req,
if ( bIncludeIt ) if ( bIncludeIt )
{ {
// Create & set the PropertyValue // Create & set the PropertyValue
beans::PropertyValue thePropertyValue; DAVPropertyValue thePropertyValue;
thePropertyValue.Handle = -1; thePropertyValue.Name = aHeaderName;
thePropertyValue.Name = aHeaderName; thePropertyValue.IsCaseSensitive = false;
thePropertyValue.State = beans::PropertyState_DIRECT_VALUE; thePropertyValue.Value <<= aHeaderValue;
thePropertyValue.Value <<= aHeaderValue;
// Add the newly created PropertyValue // Add the newly created PropertyValue
rResource.properties.push_back( thePropertyValue ); rResource.properties.push_back( thePropertyValue );
...@@ -155,10 +153,9 @@ extern "C" void NHR_ResponseHeaderCatcher( void * userdata, ...@@ -155,10 +153,9 @@ extern "C" void NHR_ResponseHeaderCatcher( void * userdata,
if ( bIncludeIt ) if ( bIncludeIt )
{ {
// Create & set the PropertyValue // Create & set the PropertyValue
beans::PropertyValue thePropertyValue; DAVPropertyValue thePropertyValue;
thePropertyValue.Handle = -1; thePropertyValue.Name = aHeaderName;
thePropertyValue.Name = aHeaderName; thePropertyValue.IsCaseSensitive = false;
thePropertyValue.State = beans::PropertyState_DIRECT_VALUE;
if ( nPos < aHeader.getLength() ) if ( nPos < aHeader.getLength() )
thePropertyValue.Value <<= aHeader.copy( nPos + 1 ).trim(); 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