Update of /cvsroot/mod-c/ehtml/src
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3953
Modified Files:
Request.cpp
Log Message:
* Header names are case insensitive (rfc2616, sect 4.2).
Index: Request.cpp
===================================================================
RCS file: /cvsroot/mod-c/ehtml/src/Request.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** Request.cpp 6 Nov 2006 17:09:54 -0000 1.15
--- Request.cpp 1 Dec 2006 13:31:44 -0000 1.16
***************
*** 231,235 ****
// Cookie?
! if ( strncmp( "kie", _tmp + 1, 3 ) == 0 )
// We have possibly, more than one cookie
ProcessCookieHeader(tmp->val);
--- 231,235 ----
// Cookie?
! if ( strncasecmp( "kie", _tmp + 1, 3 ) == 0 )
// We have possibly, more than one cookie
ProcessCookieHeader(tmp->val);
***************
*** 240,244 ****
// Content length?
! if ( !ContentLength && strncmp( "tent-Length", _tmp + 1, 11 ) == 0 )
// We have the content length
ContentLength = ( HeaderEntry* ) tmp;
--- 240,244 ----
// Content length?
! if ( !ContentLength && strncasecmp( "tent-Length", _tmp + 1, 11 ) == 0 )
// We have the content length
ContentLength = ( HeaderEntry* ) tmp;
|